summaryrefslogtreecommitdiff
path: root/sys/include/dev/timer.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-29 00:58:07 -0400
committerIan Moffett <ian@osmora.org>2025-05-29 00:58:07 -0400
commitc1ee781a26f1910fe1736b982ce6248c7c2421ff (patch)
tree295a0ba3176b9713de286aff2f138ddc78a91bc2 /sys/include/dev/timer.h
parent9c97f71f0f498f5f268473c96d64d07d81d84c84 (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.h1
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);