diff options
Diffstat (limited to 'src/core/Clock.cpp')
-rw-r--r-- | src/core/Clock.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Clock.cpp b/src/core/Clock.cpp index be9e91dcf..5704d4bff 100644 --- a/src/core/Clock.cpp +++ b/src/core/Clock.cpp @@ -34,6 +34,11 @@ uint Clock::currentSecondsSinceEpoch() return instance().currentDateTimeImpl().toTime_t(); } +qint64 Clock::currentMilliSecondsSinceEpoch() +{ + return instance().currentDateTimeImpl().toMSecsSinceEpoch(); +} + QDateTime Clock::serialized(const QDateTime& dateTime) { auto time = dateTime.time(); |