mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 16:34:13 +01:00
ircd: Wrap call to gettimeofday() with posix exception generator.
This commit is contained in:
parent
cdcd2e2fb9
commit
ab564961e0
1 changed files with 1 additions and 1 deletions
|
@ -214,6 +214,6 @@ inline ircd::microtime_t
|
||||||
ircd::microtime()
|
ircd::microtime()
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, nullptr);
|
syscall(::gettimeofday, &tv, nullptr);
|
||||||
return { tv.tv_sec, tv.tv_usec };
|
return { tv.tv_sec, tv.tv_usec };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue