mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Trivial: useless cast (ptime)(I'm ptime)
This commit is contained in:
parent
8a10000222
commit
d3c09ba67e
@ -30,13 +30,13 @@ void SetMockTime(int64_t nMockTimeIn)
|
|||||||
|
|
||||||
int64_t GetTimeMillis()
|
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();
|
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_milliseconds();
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t GetTimeMicros()
|
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();
|
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_microseconds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user