Commit 8e06126d authored by Dominik Charousset's avatar Dominik Charousset

Define timestamp in terms of a timespan

parent 64e2ee87
......@@ -25,11 +25,11 @@
namespace caf {
/// A portable timespan type with nanosecond resolution.
using timespan = std::chrono::duration<int64_t, std::nano>;
/// A portable timestamp with nanosecond resolution anchored at the UNIX epoch.
using timestamp = std::chrono::time_point<
std::chrono::system_clock,
std::chrono::duration<int64_t, std::nano>
>;
using timestamp = std::chrono::time_point<std::chrono::system_clock, timespan>;
/// Convenience function for returning a `timestamp` representing
/// the current system time.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment