From 3db44e67fddf0c8d412b882c64999fa55d410ea0 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Fri, 20 Jan 2006 14:11:38 +0000 Subject: [PATCH] this is better, its clocks, not seconds, so this was not always true --- testsuite/target/tests/storagetargettest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/target/tests/storagetargettest.cc b/testsuite/target/tests/storagetargettest.cc index dd00287..e12ebd8 100644 --- a/testsuite/target/tests/storagetargettest.cc +++ b/testsuite/target/tests/storagetargettest.cc @@ -66,11 +66,11 @@ int main() for (; i < 1000; i++) backend.storeObject(patch1); curr_time = clock() - time_start; // time in micro seconds - DBG << "Wrote " << i << " patches in " << curr_time / (float)1000000 << " seconds" << std::endl; + DBG << "Wrote " << i << " patches in " << (double) curr_time / CLOCKS_PER_SEC << " seconds" << std::endl; time_start = clock(); std::list objs = backend.storedObjects(); curr_time = clock() - time_start; // time in micro seconds - DBG << "Read " << objs.size() << " patches in " << curr_time / (float)1000000 << " seconds" << std::endl; + DBG << "Read " << objs.size() << " patches in " << (double) curr_time / CLOCKS_PER_SEC << " seconds" << std::endl; return 0; } -- 2.7.4