13 #ifndef __STOUT_OS_WINDOWS_BOOTID_HPP__ 14 #define __STOUT_OS_WINDOWS_BOOTID_HPP__ 34 std::chrono::milliseconds uptime =
35 std::chrono::milliseconds(::GetTickCount64());
37 std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
38 std::chrono::system_clock::time_point boot_time = now - uptime;
40 long long boot_time_secs = std::chrono::duration_cast<std::chrono::seconds>(
41 boot_time.time_since_epoch()).count();
48 #endif // __STOUT_OS_WINDOWS_BOOTID_HPP__ Try< std::string > bootId()
Definition: bootid.hpp:33
Definition: posix_signalhandler.hpp:23
std::string stringify(int flags)