We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20b3dc8 + d3c09ba commit 7f5d7e9Copy full SHA for 7f5d7e9
src/utiltime.cpp
@@ -30,13 +30,13 @@ void SetMockTime(int64_t nMockTimeIn)
30
31
int64_t GetTimeMillis()
32
{
33
- return (boost::posix_time::ptime(boost::posix_time::microsec_clock::universal_time()) -
+ return (boost::posix_time::microsec_clock::universal_time() -
34
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_milliseconds();
35
}
36
37
int64_t GetTimeMicros()
38
39
40
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_microseconds();
41
42
0 commit comments