MCPcopy Create free account
hub / github.com/chen3feng/toft / Set

Method Set

system/time/clock.cpp:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 return MicroSeconds() / 1000000;
30 }
31 virtual bool Set(int64_t microseconds) {
32 timespec ts = {microseconds / 1000000, microseconds % 1000000 * 1000};
33 return clock_settime(m_id, &ts) == 0;
34 }
35private:
36 clockid_t m_id;
37};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected