1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Userland: Stop passing ignored timezones to gettimeofday

This commit is contained in:
Nico Weber 2020-08-27 17:00:00 -04:00 committed by Andreas Kling
parent ab87d42200
commit 88319b188e
3 changed files with 8 additions and 11 deletions

View file

@ -163,8 +163,7 @@ static void handle_sigabrt(int)
static double get_time_in_ms()
{
struct timeval tv1;
struct timezone tz1;
auto return_code = gettimeofday(&tv1, &tz1);
auto return_code = gettimeofday(&tv1, nullptr);
ASSERT(return_code >= 0);
return static_cast<double>(tv1.tv_sec) * 1000.0 + static_cast<double>(tv1.tv_usec) / 1000.0;
}