mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
AK: Make timeval_add() and timeval_sub() take references.
This commit is contained in:
parent
bf905225e7
commit
29a9430246
Notes:
sideshowbarker
2024-07-19 13:43:30 +09:00
Author: https://github.com/awesomekling
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