mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +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()
|
||||
{
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, nullptr);
|
||||
syscall(::gettimeofday, &tv, nullptr);
|
||||
return { tv.tv_sec, tv.tv_usec };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue