diff options
author | 3gg <3gg@shellblade.net> | 2023-02-04 14:37:31 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-02-04 14:37:31 -0800 |
commit | 90183beeb914590a2ea4eff0242b813562d2d641 (patch) | |
tree | 612c486eecb968d947058312fec4e5c318f1a743 /timer/include | |
parent | 20169ed6d5551d2fee59d9e4bc8caa73a8b8da7c (diff) |
Add time_point_to_ns().
Diffstat (limited to 'timer/include')
-rw-r--r-- | timer/include/timer.h | 3 |
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. |
45 | time_delta sec_to_time_delta(double seconds); | 45 | time_delta sec_to_time_delta(double seconds); |
46 | 46 | ||
47 | /// Convert the time point to nanoseconds. | ||
48 | uint64_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. |
48 | void time_sleep(time_delta dt); | 51 | void time_sleep(time_delta dt); |
49 | 52 | ||