aboutsummaryrefslogtreecommitdiffstats
path: root/fastos
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-08-28 09:44:25 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-08-28 09:44:25 +0000
commit5348c1c5a9e72031f27dcf39d456036a911bcfcd (patch)
tree915f103194a90357aaadf0f6ebd890c5c0ae78fa /fastos
parent58cfb5e88daf7bed3f5b235325eeae5f81983a21 (diff)
Unify on fastos::time().
Diffstat (limited to 'fastos')
-rw-r--r--fastos/src/vespa/fastos/timestamp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastos/src/vespa/fastos/timestamp.cpp b/fastos/src/vespa/fastos/timestamp.cpp
index b671aa15b71..bc865448e5a 100644
--- a/fastos/src/vespa/fastos/timestamp.cpp
+++ b/fastos/src/vespa/fastos/timestamp.cpp
@@ -43,7 +43,7 @@ int64_t ClockSystem::now()
}
time_t time() {
- return duration_cast<seconds>(system_clock::now().time_since_epoch()).count();
+ return system_clock::to_time_t(system_clock::now());
}
}