17 #ifndef COM_BORA_SOFTWARE__BALAU_SYSTEM__CLOCK 18 #define COM_BORA_SOFTWARE__BALAU_SYSTEM__CLOCK 20 #include <Balau/ThirdParty/Date/date.hpp> 27 typedef duration<int64_t, centi> centiseconds;
28 typedef duration<int64_t, deci> deciseconds;
48 public:
using TimePoint = std::chrono::system_clock::time_point;
53 public:
virtual std::chrono::system_clock::time_point now()
const = 0;
58 public:
virtual Date::year_month_day today()
const = 0;
63 public:
virtual std::chrono::nanoseconds nanotime()
const = 0;
68 public:
virtual std::chrono::milliseconds millitime()
const = 0;
73 public:
virtual std::chrono::centiseconds centitime()
const = 0;
78 public:
virtual std::chrono::deciseconds decitime()
const = 0;
80 public:
virtual ~
Clock() =
default;
85 #endif // COM_BORA_SOFTWARE__BALAU_SYSTEM__CLOCK Base interface of clocks.
Definition: Clock.hpp:47
System utilities and wrappers.
Definition: HttpServerConfiguration.hpp:30