diff options
author | svost <ya.nowa@yandex.ru> | 2015-04-30 23:11:52 +0300 |
---|---|---|
committer | svost <ya.nowa@yandex.ru> | 2015-04-30 23:11:52 +0300 |
commit | d3c09ba67ed405808830a1cfafe7aa61b2a200df (patch) | |
tree | 4d275bb5bf76bf726473c3cc1e5e497f692258a9 /src/utiltime.cpp | |
parent | 8a10000222cb49eb253b41802ecf312adaf79439 (diff) |
Trivial: useless cast (ptime)(I'm ptime)
Diffstat (limited to 'src/utiltime.cpp')
-rw-r--r-- | src/utiltime.cpp | 4 |
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(); } |