Indicate that TLV-VALUE should be a timestamp.
More...
#include <convention.hpp>
|
| | TimeValue (uint64_t t=0, uint64_t unit=Microseconds, bool allowFallback=false) |
| | Constructor.
|
| |
| std::pair< bool, uint64_t > | toNumber () const |
| | Generate TLV-VALUE.
|
| |
Indicate that TLV-VALUE should be a timestamp.
◆ Unit
| Enumerator |
|---|
| Seconds | |
| Milliseconds | |
| Microseconds | |
◆ TimeValue()
| ndnph::convention::TimeValue::TimeValue |
( |
uint64_t |
t = 0, |
|
|
uint64_t |
unit = Microseconds, |
|
|
bool |
allowFallback = false |
|
) |
| |
|
inlineexplicit |
Constructor.
- Parameters
-
| t | timestamp in microseconds, or 0 to use current time. |
| unit | time unit. |
| allowFallback | if true, use RandomValue() when clock is unavailable. |
◆ toNumber()
| std::pair< bool, uint64_t > ndnph::convention::TimeValue::toNumber |
( |
| ) |
const |
|
inline |
Generate TLV-VALUE.
- Returns
- whether success and the number.
The documentation for this class was generated from the following file: