mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
os: implement os_hrtime
Just an alias to uv_hrtime. Provides a high-resolution timer.
This commit is contained in:
parent
095b4479c0
commit
f172b19f43
@ -22,6 +22,15 @@ void time_init(void)
|
|||||||
uv_cond_init(&delay_cond);
|
uv_cond_init(&delay_cond);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Obtain a high-resolution timer value
|
||||||
|
///
|
||||||
|
/// @return a timer value, not related to the time of day and not subject
|
||||||
|
/// to clock drift. The value is expressed in nanoseconds.
|
||||||
|
uint64_t os_hrtime(void)
|
||||||
|
{
|
||||||
|
return uv_hrtime();
|
||||||
|
}
|
||||||
|
|
||||||
/// Sleeps for a certain amount of milliseconds
|
/// Sleeps for a certain amount of milliseconds
|
||||||
///
|
///
|
||||||
/// @param milliseconds Number of milliseconds to sleep
|
/// @param milliseconds Number of milliseconds to sleep
|
||||||
|
Loading…
Reference in New Issue
Block a user