mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-09 10:06:44 -05:00
util: add helper to get time in nanoseconds.
Signed-off-by: Sergio Gómez <sergio.g.delreal@gmail.com>
This commit is contained in:
parent
abf80b529e
commit
0e070e93d8
2 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue