aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-05-04 09:10:57 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-05-04 09:30:04 +0200
commit7f5d7e9d6d85020c5dbb8f985ecaf8d176d5255d (patch)
tree7741575ce51949d5685b9058d832baeffd840bde /src
parent20b3dc85ed84f169b15c29c56e0c237794359ec8 (diff)
parentd3c09ba67ed405808830a1cfafe7aa61b2a200df (diff)
Merge pull request #6086
d3c09ba Trivial: useless cast (ptime)(I'm ptime) (svost)
Diffstat (limited to 'src')
-rw-r--r--src/utiltime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utiltime.cpp b/src/utiltime.cpp
index 8f0dcae29d..d316288999 100644
--- a/src/utiltime.cpp
+++ b/src/utiltime.cpp
@@ -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();
}