Merge pull request #6086

d3c09ba Trivial: useless cast (ptime)(I'm ptime) (svost)
This commit is contained in:
Wladimir J. van der Laan 2015-05-04 09:10:57 +02:00
commit 7f5d7e9d6d
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6

View File

@ -30,13 +30,13 @@ void SetMockTime(int64_t nMockTimeIn)
int64_t GetTimeMillis()
{
return (boost::posix_time::ptime(boost::posix_time::microsec_clock::universal_time()) -
return (boost::posix_time::microsec_clock::universal_time() -
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_milliseconds();
}
int64_t GetTimeMicros()
{
return (boost::posix_time::ptime(boost::posix_time::microsec_clock::universal_time()) -
return (boost::posix_time::microsec_clock::universal_time() -
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_microseconds();
}