From 47c03c8717923ed79340d00b2c6b156422284a0a Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Thu, 3 Nov 2011 03:36:59 +0900 Subject: [PATCH] Updated rak/timer.h. --- rak/timer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/rak/timer.h b/rak/timer.h index faaa0da0..67bdc1c7 100644 --- a/rak/timer.h +++ b/rak/timer.h @@ -54,6 +54,7 @@ class timer { int64_t usec() const { return m_time; } timer round_seconds() const { return (m_time / 1000000) * 1000000; } + timer round_seconds_ceiling() const { return ((m_time + 1000000 - 1) / 1000000) * 1000000; } timeval tval() const { timeval val;