From 90183beeb914590a2ea4eff0242b813562d2d641 Mon Sep 17 00:00:00 2001
From: 3gg <3gg@shellblade.net>
Date: Sat, 4 Feb 2023 14:37:31 -0800
Subject: Add time_point_to_ns().

---
 timer/include/timer.h | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'timer/include')

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);
 /// Convert the time elapsed in seconds to a time delta.
 time_delta sec_to_time_delta(double seconds);
 
+/// Convert the time point to nanoseconds.
+uint64_t time_point_to_ns(time_point);
+
 /// Put the caller thread to sleep for the given amount of time.
 void time_sleep(time_delta dt);
 
-- 
cgit v1.2.3