Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
template std::chrono::microseconds GetTime();
45
46
void SetMockTime(int64_t nMockTimeIn)
47
{
48
nMockTime.store(nMockTimeIn, std::memory_order_relaxed);
49
}
50
51
int64_t GetMockTime()
52
{
Callers
2
BOOST_AUTO_TEST_CASE
Function · 0.85
BOOST_AUTO_TEST_CASE
Function · 0.85
Calls
no outgoing calls
Tested by
2
BOOST_AUTO_TEST_CASE
Function · 0.68
BOOST_AUTO_TEST_CASE
Function · 0.68