aboutsummaryrefslogtreecommitdiffstats
path: root/src/timers.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-04-07 00:48:39 +0000
committerlloyd <[email protected]>2008-04-07 00:48:39 +0000
commitd5152bdccb28ae6286cac29b57199f7e58159608 (patch)
tree2c9d2a4b84d6ead8014e365cd2c0971343de763f /src/timers.cpp
parent404ef9b8b7bc57a0eedf0cfe321b9a49643aecd3 (diff)
Move combine_timers from a free-standing function in util.h to a private
static function of the Timer base class - since that is the only code which actually needs to access it.
Diffstat (limited to 'src/timers.cpp')
-rw-r--r--src/timers.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timers.cpp b/src/timers.cpp
index ea2ec9dfa..da02e46c6 100644
--- a/src/timers.cpp
+++ b/src/timers.cpp
@@ -5,7 +5,6 @@
#include <botan/timers.h>
#include <botan/libstate.h>
-#include <botan/util.h>
#include <ctime>
namespace Botan {
@@ -34,7 +33,7 @@ u64bit Timer::clock() const
/*************************************************
* Combine a two time values into a single one *
*************************************************/
-u64bit combine_timers(u32bit seconds, u32bit parts, u32bit parts_hz)
+u64bit Timer::combine_timers(u32bit seconds, u32bit parts, u32bit parts_hz)
{
const u64bit NANOSECONDS_UNITS = 1000000000;
parts *= (NANOSECONDS_UNITS / parts_hz);