MCPcopy Create free account
hub / github.com/davisking/dlib / set_timestamp

Method set_timestamp

dlib/test/timer.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 void set_timestamp()
100 {
101 m.lock();
102 timestamp = ts.get_timestamp();
103 dlog << LTRACE << "in set_timestamp(), time is " << timestamp;
104 dlib::sleep(1);
105 print_spinner();
106 m.unlock();
107 }
108
109 private:
110 bool wait_for_value (

Callers

nothing calls this directly

Calls 5

print_spinnerFunction · 0.85
get_timestampMethod · 0.80
sleepFunction · 0.50
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected