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

Function MilliSleep

src/utiltime.cpp:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void MilliSleep(int64_t n)
62{
63
64/**
65 * Boost's sleep_for was uninterruptible when backed by nanosleep from 1.50
66 * until fixed in 1.52. Use the deprecated sleep method for the broken case.
67 * See: https://svn.boost.org/trac/boost/ticket/7238
68 */
69#if defined(HAVE_WORKING_BOOST_SLEEP_FOR)
70 boost::this_thread::sleep_for(boost::chrono::milliseconds(n));
71#elif defined(HAVE_WORKING_BOOST_SLEEP)
72 boost::this_thread::sleep(boost::posix_time::milliseconds(n));
73#else
74//should never get here
75#error missing boost sleep implementation
76#endif
77}
78
79std::string FormatISO8601DateTime(int64_t nTime) {
80 struct tm ts;

Callers 9

HTTPReq_JSONRPCFunction · 0.85
CommandLineRPCFunction · 0.85
WaitForShutdownFunction · 0.85
RewriteMethod · 0.85
BackupMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
Sleep100msFunction · 0.85

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68