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:
parent
bf905225e7
commit
29a9430246
4 changed files with 19 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue