MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / toPosixTime

Function toPosixTime

src/scheduler.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24#if BOOST_VERSION < 105000
25static boost::system_time toPosixTime(const boost::chrono::system_clock::time_point& t)
26{
27 // Creating the posix_time using from_time_t loses sub-second precision. So rather than exporting the time_point to time_t,
28 // start with a posix_time at the epoch (0) and add the milliseconds that have passed since then.
29 return boost::posix_time::from_time_t(0) + boost::posix_time::milliseconds(boost::chrono::duration_cast<boost::chrono::milliseconds>(t.time_since_epoch()).count());
30}
31#endif
32
33void CScheduler::serviceQueue()

Callers 1

serviceQueueMethod · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected