23 #include "pedigree/kernel/compiler.h" 24 #include "pedigree/kernel/processor/types.h" 32 const Timestamp Nanosecond = 1U;
33 const Timestamp Microsecond = 1000U;
34 const Timestamp Millisecond = 1000000U;
35 const Timestamp Second = Millisecond * 1000U;
36 const Timestamp Minute = Second * 60U;
37 const Timestamp Hour = Minute * 60U;
38 const Timestamp Day = Hour * 24U;
41 static_assert(Microsecond == 1000,
"Microsecond conversion multiplier to nanoseconds is incorrect.");
42 static_assert(Millisecond == 1000000,
"Millisecond conversion multiplier to nanoseconds is incorrect.");
43 static_assert(Second == 1000000000,
"Seconds conversion multiplier to nanoseconds is incorrect.");
47 const Timestamp Infinity = 0xFFFFFFFFFFFFFFFFULL;
63 runAfter(
int (*func)(
void *),
void *param, Timestamp nanoseconds);
83 size_t second,
size_t minute,
size_t hour,
size_t dom,
size_t month,