Funapi uses MonotonicClock to be overcome clock drift.
More...
#include <monotonic_clock.h>
|
typedef int64_t | Duration |
| duration value in usec.
|
|
typedef int64_t | Value |
| clock value in usec.
|
|
|
static Duration | FromMsec (int64_t msec) |
| Converts msec value into Duration.
|
|
static Duration | FromSec (int64_t sec) |
| Converts sec value into Duration.
|
|
static Duration | FromUsec (int64_t usec) |
| Converts usec value into Duration.
|
|
static Value | Now () |
| Returns the current Monotonic value. More...
|
|
static void | ToTimespec (const Value &value, struct timespec *ret) |
| Converts the given Monotonic clock value into timespec.
|
|
MonotonicClock provides microsecond granularity.
◆ Now()
static Value fun::MonotonicClock::Now |
( |
| ) |
|
|
inlinestatic |