Author: tschoening
Date: Fri Oct 9 09:04:00 2015
New Revision: 1707676
URL: http://svn.apache.org/viewvc?rev=1707676&view=rev
Log:
LOGCXX-457: delayUntilNextMinute is not used (anymore) and even if it will be
needed in the future it shoudl be implemented calling delayUnitNextSecond.
Modified:
incubator/log4cxx/trunk/src/test/cpp/rolling/timebasedrollingtest.cpp
Modified: incubator/log4cxx/trunk/src/test/cpp/rolling/timebasedrollingtest.cpp
URL:
http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/test/cpp/rolling/timebasedrollingtest.cpp?rev=1707676&r1=1707675&r2=1707676&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/test/cpp/rolling/timebasedrollingtest.cpp
(original)
+++ incubator/log4cxx/trunk/src/test/cpp/rolling/timebasedrollingtest.cpp Fri
Oct 9 09:04:00 2015
@@ -422,15 +422,6 @@ public:
delayUntilNextSecond(100);
std::cout << "Done waiting.";
}
-
- void delayUntilNextMinute(int seconds) {
- apr_time_t now = apr_time_now();
- apr_time_t next = ((now / APR_USEC_PER_SEC) + 1) * APR_USEC_PER_SEC
- + seconds * 1000000L;
-
- apr_sleep(next - now);
- }
-
};