mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 11:21:34 +00:00
LibCore: Enable elapsed time as AK::Time on a ElapsedTimer
This commit is contained in:
parent
e92b576cba
commit
1d4be9ca33
Notes:
sideshowbarker
2024-07-18 04:08:06 +09:00
Author: https://github.com/bgianfo
Commit: 1d4be9ca33
Pull-request: https://github.com/SerenityOS/serenity/pull/9991
Reviewed-by: https://github.com/awesomekling
2 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Time.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
namespace Core {
|
||||
|
@ -20,6 +21,7 @@ public:
|
|||
bool is_valid() const { return m_valid; }
|
||||
void start();
|
||||
int elapsed() const;
|
||||
Time elapsed_time() const;
|
||||
|
||||
const struct timeval& origin_time() const { return m_origin_time; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue