Apr 3, 2023 at 3:54pm
Perhaps:
1 2 3 4
|
[[nodiscard]]
inline auto now() {
return std::chrono::time_point_cast<std::chrono::sys_seconds::duration>(std::chrono::system_clock::now());
}
|
Last edited on Apr 3, 2023 at 3:55pm
Apr 3, 2023 at 5:14pm
Excellent solutions!! Thanks !