util: add helper to get time in nanoseconds.

Signed-off-by: Sergio Gómez <sergio.g.delreal@gmail.com>
This commit is contained in:
Sergio Gómez 2025-12-01 17:23:46 -05:00
parent abf80b529e
commit 0e070e93d8
2 changed files with 11 additions and 0 deletions

View file

@ -6,6 +6,11 @@
static const long NSEC_PER_SEC = 1000000000;
/**
* Get the current time, in nanoseconds.
*/
int64_t get_current_time_nsec(void);
/**
* Get the current time, in milliseconds.
*/