client-cpp  0.8.1
TimeUtils.hpp
Go to the documentation of this file.
1 
17 #ifndef TIMEUTILS_HPP_
18 #define TIMEUTILS_HPP_
19 
20 #include <chrono>
21 
22 namespace kaa {
23 
24 class TimeUtils {
25 public:
26  static std::size_t getCurrentTimeInMs() {
27  return std::chrono::duration_cast<std::chrono::milliseconds>(
28  std::chrono::system_clock::now().time_since_epoch()).count();
29  }
30 };
31 
32 } /* namespace kaa */
33 
34 #endif /* TIMEUTILS_HPP_ */
static std::size_t getCurrentTimeInMs()
Definition: TimeUtils.hpp:26