@@ -15,7 +15,7 @@ namespace instrumentation {
1515class Frame {
1616 public:
1717 inline Frame () : Frame (" " ) { }
18- inline Frame (std::string name) : name (name), start (disabled ? disabled_time : std::chrono::steady_clock ::now ()) {}
18+ inline Frame (std::string name) : name (name), start (disabled ? disabled_time : std::chrono::system_clock ::now ()) {}
1919
2020 inline ~Frame () {
2121 if (!name.empty () && check ()) {
@@ -27,7 +27,7 @@ class Frame {
2727 if (disabled) {
2828 return false ;
2929 }
30- std::chrono::steady_clock ::time_point end = std::chrono::steady_clock ::now ();
30+ std::chrono::system_clock ::time_point end = std::chrono::system_clock ::now ();
3131 auto duration = std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::operator-(end, start)).count ();
3232 return duration >= 16000 ;
3333 }
@@ -36,7 +36,7 @@ class Frame {
3636 if (disabled) {
3737 return ;
3838 }
39- std::chrono::steady_clock ::time_point end = std::chrono::steady_clock ::now ();
39+ std::chrono::system_clock ::time_point end = std::chrono::system_clock ::now ();
4040 auto duration = std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::operator-(end, start)).count ();
4141 auto startMilis = std::chrono::time_point_cast<std::chrono::microseconds>(start).time_since_epoch ().count () / 1000.0 ;
4242 auto endMilis = std::chrono::time_point_cast<std::chrono::microseconds>(end).time_since_epoch ().count () / 1000.0 ;
@@ -56,9 +56,9 @@ class Frame {
5656
5757 private:
5858 static bool disabled;
59- static const std::chrono::steady_clock ::time_point disabled_time; // Couldn't find reasonable constant
59+ static const std::chrono::system_clock ::time_point disabled_time; // Couldn't find reasonable constant
6060
61- const std::chrono::steady_clock ::time_point start;
61+ const std::chrono::system_clock ::time_point start;
6262 const std::string name;
6363
6464 Frame (const Frame&) = delete;
0 commit comments