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

Method Seconds

system/time/clock.cpp:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 return MicroSeconds() / 1000;
27 }
28 virtual int64_t Seconds() {
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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected