1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 16:45:08 +00:00

AK: Make timeval_add() and timeval_sub() take references.

This commit is contained in:
Andreas Kling 2019-06-06 18:02:28 +02:00
parent bf905225e7
commit 29a9430246
4 changed files with 19 additions and 18 deletions

View file

@ -15,6 +15,6 @@ int CElapsedTimer::elapsed() const
struct timeval now;
gettimeofday(&now, nullptr);
struct timeval diff;
AK::timeval_sub(&now, &m_start_time, &diff);
timeval_sub(now, m_start_time, diff);
return diff.tv_sec * 1000 + diff.tv_usec / 1000;
}