aboutsummaryrefslogtreecommitdiff
path: root/timer/include/timer.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2023-02-04 14:37:31 -0800
committer3gg <3gg@shellblade.net>2023-02-04 14:37:31 -0800
commit90183beeb914590a2ea4eff0242b813562d2d641 (patch)
tree612c486eecb968d947058312fec4e5c318f1a743 /timer/include/timer.h
parent20169ed6d5551d2fee59d9e4bc8caa73a8b8da7c (diff)
Add time_point_to_ns().
Diffstat (limited to 'timer/include/timer.h')
-rw-r--r--timer/include/timer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/timer/include/timer.h b/timer/include/timer.h
index 0274c69..a8a3f8b 100644
--- a/timer/include/timer.h
+++ b/timer/include/timer.h
@@ -44,6 +44,9 @@ double time_delta_to_sec(time_delta dt);
44/// Convert the time elapsed in seconds to a time delta. 44/// Convert the time elapsed in seconds to a time delta.
45time_delta sec_to_time_delta(double seconds); 45time_delta sec_to_time_delta(double seconds);
46 46
47/// Convert the time point to nanoseconds.
48uint64_t time_point_to_ns(time_point);
49
47/// Put the caller thread to sleep for the given amount of time. 50/// Put the caller thread to sleep for the given amount of time.
48void time_sleep(time_delta dt); 51void time_sleep(time_delta dt);
49 52