5 # ifndef VCCC_UTILITY_TIME_HPP
6 # define VCCC_UTILITY_TIME_HPP
19 auto now = std::chrono::system_clock::now();
20 auto duration = now.time_since_epoch();
21 return std::chrono::duration_cast<T>(duration).count();
28 return getCurrentTime<std::chrono::milliseconds>();
35 return getCurrentTime<std::chrono::microseconds>();
42 return getCurrentTime<std::chrono::nanoseconds>();
decltype(auto) getCurrentMilliseconds()
Definition: time.hpp:26
auto getCurrentTime()
Definition: time.hpp:17
decltype(auto) getCurrentMicroseconds()
Definition: time.hpp:33
decltype(auto) getCurrentNanoseconds()
Definition: time.hpp:40
Definition: directory.h:12