I need to convert std::chrono::time_point to and from a long type (integer 64 bits). I´m starting working with std::chrono ...
std::chrono::time_point
long
std::chrono
as a single line:
long value_ms = std::chrono::duration_cast(std::chrono::time_point_cast(std::chrono::high_resolution_clock::now()).time_since_epoch()).count();