summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/ElapsedTimer.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-29 18:22:53 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-29 18:22:53 +0200
commit62785b78724769f1dd01556778e9cb30d0a0bd1f (patch)
tree388cd7cd042616b40c21eda2d451646d62e71e7e /Libraries/LibCore/ElapsedTimer.h
parent97d0acc5b656e22d6ae4d4d69626e8603463b4d1 (diff)
downloadserenity-62785b78724769f1dd01556778e9cb30d0a0bd1f.zip
LibCore: Expose origin timestamp of Core::ElapsedTime
Diffstat (limited to 'Libraries/LibCore/ElapsedTimer.h')
-rw-r--r--Libraries/LibCore/ElapsedTimer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Libraries/LibCore/ElapsedTimer.h b/Libraries/LibCore/ElapsedTimer.h
index 9f74285216..4759c0ede0 100644
--- a/Libraries/LibCore/ElapsedTimer.h
+++ b/Libraries/LibCore/ElapsedTimer.h
@@ -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
};
};