Skip to content

Commit

Permalink
Trivial: useless cast (ptime)(I'm ptime)
Browse files Browse the repository at this point in the history
  • Loading branch information
svost committed Apr 30, 2015
1 parent 8a10000 commit d3c09ba
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 d3c09ba

Please sign in to comment.