1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibCore: Expose origin timestamp of Core::ElapsedTime

This commit is contained in:
Andreas Kling 2020-09-29 18:22:53 +02:00
parent 97d0acc5b6
commit 62785b7872
2 changed files with 6 additions and 4 deletions

View file

@ -38,9 +38,11 @@ public:
void start();
int elapsed() const;
const struct timeval& origin_time() const { return m_origin_time; }
private:
bool m_valid { false };
struct timeval m_start_time {
struct timeval m_origin_time {
0, 0
};
};