Skip to content

Commit 7f5d7e9

Browse files
committed
Merge pull request #6086
d3c09ba Trivial: useless cast (ptime)(I'm ptime) (svost)
2 parents 20b3dc8 + d3c09ba commit 7f5d7e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utiltime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ void SetMockTime(int64_t nMockTimeIn)
3030

3131
int64_t GetTimeMillis()
3232
{
33-
return (boost::posix_time::ptime(boost::posix_time::microsec_clock::universal_time()) -
33+
return (boost::posix_time::microsec_clock::universal_time() -
3434
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_milliseconds();
3535
}
3636

3737
int64_t GetTimeMicros()
3838
{
39-
return (boost::posix_time::ptime(boost::posix_time::microsec_clock::universal_time()) -
39+
return (boost::posix_time::microsec_clock::universal_time() -
4040
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_microseconds();
4141
}
4242

0 commit comments

Comments
 (0)