|
PatchworkOS
28a9544
A non-POSIX operating system.
|
#include <kernel/cpu/interrupt.h>#include <kernel/sync/lock.h>#include <sys/proc.h>#include <time.h>Go to the source code of this file.
Data Structures | |
| struct | sys_time_source_t |
| Timer system source. More... | |
Macros | |
| #define | SYS_TIME_MAX_SOURCES 8 |
| Maximum amount of system timer sources. | |
Typedefs | |
| typedef struct cpu | cpu_t |
Functions | |
| uint64_t | sys_time_register_source (const sys_time_source_t *source) |
| Register a system timer source. | |
| void | sys_time_unregister_source (const sys_time_source_t *source) |
| Unregister a system timer source. | |
| clock_t | sys_time_uptime (void) |
| Time since boot. | |
| time_t | sys_time_unix_epoch (void) |
| The unix epoch. | |
| void | sys_time_wait (clock_t nanoseconds) |
| Wait for a specified number of nanoseconds. | |
| typedef struct cpu cpu_t |
Definition at line 9 of file sys_time.h.