You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
528 B
32 lines
528 B
5 years ago
|
#ifndef WF_TIMER_TIMEPOINT_H
|
||
|
#define WF_TIMER_TIMEPOINT_H
|
||
5 years ago
|
|
||
|
#ifndef __cplusplus
|
||
|
#include <stdbool.h>
|
||
|
#include <inttypes.h>
|
||
|
#else
|
||
|
#include <cinttypes>
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
typedef uint64_t wf_timer_timepoint;
|
||
|
typedef int64_t wf_timer_timediff;
|
||
|
|
||
5 years ago
|
extern wf_timer_timepoint wf_timer_timepoint_now(void);
|
||
5 years ago
|
|
||
5 years ago
|
extern wf_timer_timepoint wf_timer_timepoint_in_msec(
|
||
5 years ago
|
wf_timer_timediff value);
|
||
|
|
||
5 years ago
|
extern bool wf_timer_timepoint_is_elapsed(
|
||
5 years ago
|
wf_timer_timepoint timepoint);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|