gramods
Loading...
Searching...
No Matches
TimeTools.hh
1
2#ifndef GRAMODS_CORE_TIMETOOLS
3#define GRAMODS_CORE_TIMETOOLS
4
5#include <gmCore/config.hh>
6
7#include <chrono>
8
9BEGIN_NAMESPACE_GMCORE;
10
26struct TimeTools {
27
28 typedef std::chrono::steady_clock clock;
29
34 static clock::time_point secondsToTimePoint(double s);
35
40 static double timePointToSeconds(clock::time_point t);
41
46 static double durationToSeconds(clock::duration t);
47
52 static clock::duration secondsToDuration(double s);
53};
54
55END_NAMESPACE_GMCORE;
56
57#endif
Static functions for converting time.
Definition TimeTools.hh:26