Clock implemented with gettimeofday() .
More...
#include <systime.hpp>
|
| static uint64_t | now () |
| | Retrieve current Unix timestamp in microseconds.
|
| |
| static bool | valid (uint64_t t) |
| | Determine whether t is likely a valid current Unix timestamp.
|
| |
| static void | set (uint64_t t) |
| | Attempt to set current Unix timestamp, if allowed on current system.
|
| |
Clock implemented with gettimeofday() .
◆ UnixTime()
| ndnph::port_unixtime_systime::UnixTime::UnixTime |
( |
| ) |
|
|
delete |
◆ now()
| static uint64_t ndnph::port_unixtime_systime::UnixTime::now |
( |
| ) |
|
|
inlinestatic |
Retrieve current Unix timestamp in microseconds.
- Returns
- the timestamp. Use
valid(t) to determine whether it's valid.
◆ set()
| static void ndnph::port_unixtime_systime::UnixTime::set |
( |
uint64_t |
t | ) |
|
|
inlinestatic |
Attempt to set current Unix timestamp, if allowed on current system.
- Parameters
-
| t | Unix timestamp in microseconds. |
◆ valid()
| static bool ndnph::port_unixtime_systime::UnixTime::valid |
( |
uint64_t |
t | ) |
|
|
inlinestatic |
Determine whether t is likely a valid current Unix timestamp.
The documentation for this class was generated from the following file:
- /home/runner/work/esp8266ndn/NDNph/src/ndnph/port/unixtime/systime.hpp