MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / SetMockTime

Function SetMockTime

src/commons/util/time.cpp:46–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44template std::chrono::microseconds GetTime();
45
46void SetMockTime(int64_t nMockTimeIn)
47{
48 nMockTime.store(nMockTimeIn, std::memory_order_relaxed);
49}
50
51int64_t GetMockTime()
52{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68