From b401602ea454be43ca6a145d50b125b000062be6 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 26 Feb 2015 21:44:16 +0100 Subject: [PATCH] [DEV] remove log of time --- drain/Resampler.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/drain/Resampler.cpp b/drain/Resampler.cpp index 215d625..70050b5 100644 --- a/drain/Resampler.cpp +++ b/drain/Resampler.cpp @@ -83,25 +83,6 @@ void drain::Resampler::configurationChange() { #endif } -namespace std { - static std::ostream& operator <<(std::ostream& _os, const std11::chrono::system_clock::time_point& _obj) { - std11::chrono::nanoseconds ns = std11::chrono::duration_cast(_obj.time_since_epoch()); - int64_t totalSecond = ns.count()/1000000000; - int64_t millisecond = (ns.count()%1000000000)/1000000; - int64_t microsecond = (ns.count()%1000000)/1000; - int64_t nanosecond = ns.count()%1000; - //_os << totalSecond << "s " << millisecond << "ms " << microsecond << "µs " << nanosecond << "ns"; - - int32_t second = totalSecond % 60; - int32_t minute = (totalSecond/60)%60; - int32_t hour = (totalSecond/3600)%24; - int32_t day = (totalSecond/(24*3600))%365; - int32_t year = totalSecond/(24*3600*365); - _os << year << "y " << day << "d " << hour << "h" << minute << ":"<< second << "s " << millisecond << "ms " << microsecond << "µs " << nanosecond << "ns"; - return _os; - } -} - bool drain::Resampler::process(std11::chrono::system_clock::time_point& _time, void* _input, size_t _inputNbChunk,