diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-29 00:58:07 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-29 00:58:07 -0400 |
commit | c1ee781a26f1910fe1736b982ce6248c7c2421ff (patch) | |
tree | 295a0ba3176b9713de286aff2f138ddc78a91bc2 /sys/include/dev/timer.h | |
parent | 9c97f71f0f498f5f268473c96d64d07d81d84c84 (diff) |
kernel/amd64: hpet: Add hpet_time_nsec()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/timer.h')
-rw-r--r-- | sys/include/dev/timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/dev/timer.h b/sys/include/dev/timer.h index e54adcc..fe91323 100644 --- a/sys/include/dev/timer.h +++ b/sys/include/dev/timer.h @@ -69,6 +69,7 @@ struct timer { const char *name; /* e.g "HPET" */ size_t(*calibrate)(void); /* Returns frequency, 0 for unspecified */ size_t(*get_time_usec)(void); /* Time since init (microseconds) */ + size_t(*get_time_nsec)(void); /* Time since init (nanoseconds) */ size_t(*get_time_sec)(void); /* Time since init (seconds) */ int(*msleep)(size_t ms); int(*usleep)(size_t us); |