mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-03 12:30:08 +00:00
TimerManager: more microseconds related constants.
This commit is contained in:
parent
dac50fe0fb
commit
98ccef732f
@ -34,9 +34,11 @@ using namespace std;
|
|||||||
#define MIN_TIMEOUT_NS 200
|
#define MIN_TIMEOUT_NS 200
|
||||||
|
|
||||||
#define NS_PER_SEC 1E9
|
#define NS_PER_SEC 1E9
|
||||||
|
#define USEC_PER_SEC 1E6
|
||||||
|
#define NS_PER_USEC 1000UL
|
||||||
#define ONE_BILLION_NS 0x3B9ACA00UL
|
#define ONE_BILLION_NS 0x3B9ACA00UL
|
||||||
|
|
||||||
#define USECS_TO_NSECS(us) (us) * 1000
|
#define USECS_TO_NSECS(us) (us) * NS_PER_USEC
|
||||||
|
|
||||||
typedef function<void()> timer_cb;
|
typedef function<void()> timer_cb;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user