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

Define timestamp in terms of a timespan

parent 64e2ee87
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
namespace caf { 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. /// A portable timestamp with nanosecond resolution anchored at the UNIX epoch.
using timestamp = std::chrono::time_point< using timestamp = std::chrono::time_point<std::chrono::system_clock, timespan>;
std::chrono::system_clock,
std::chrono::duration<int64_t, std::nano>
>;
/// Convenience function for returning a `timestamp` representing /// Convenience function for returning a `timestamp` representing
/// the current system time. /// 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