0
0
Fork 0
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:
Jason Volk 2017-10-17 00:43:25 -07:00
parent cdcd2e2fb9
commit ab564961e0

View file

@ -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 };
}