Skip to content

Commit

Permalink
Merge pull request #6086
Browse files Browse the repository at this point in the history
d3c09ba Trivial: useless cast (ptime)(I'm ptime) (svost)
  • Loading branch information
laanwj committed May 4, 2015
2 parents 20b3dc8 + d3c09ba commit 7f5d7e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utiltime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 7f5d7e9

Please sign in to comment.