wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
clock.h
1#ifndef CLOCK_H
2#define CLOCK_H
3
5
7#define CLOCK_REALTIME 0
8
11typedef struct {
14} timespec;
15
21u64 clock_epoch_to_ymdhms(u64 secs);
22
26u64 clock_ymdhms(void);
27
33u64 wired_clock_epoch_secs(void);
34
35#endif
A kernel timespec: seconds and nanoseconds since the UNIX epoch, the struct clock_gettime(2) fills.
Definition clock.h:11
i64 sec
whole seconds since the UNIX epoch
Definition clock.h:12
i64 nsec
nanoseconds past sec, [0, 1e9)
Definition clock.h:13
Linux direct syscalls.
long i64
signed 64-bit integer
Definition types.h:14
unsigned long u64
unsigned 64-bit integer
Definition types.h:13