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:
parent
ab87d42200
commit
88319b188e
3 changed files with 8 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue