From 870bfa6fd5bff8572d132859015f09fcca5b444f Mon Sep 17 00:00:00 2001 From: David Freese Date: Sat, 5 Jun 2010 14:18:10 -0500 Subject: [PATCH] WEFAX time Bug fix for win32 current_time function --- src/wefax/wefax.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wefax/wefax.cxx b/src/wefax/wefax.cxx index 30b762a7..606f04f2 100644 --- a/src/wefax/wefax.cxx +++ b/src/wefax/wefax.cxx @@ -1567,13 +1567,13 @@ static double current_time(void) } #else +#include /// This is much less accurate. static double current_time(void) { - struct time tmp_tim ; - time( &tmp_timb ); + clock_t clks = clock(); - return tmp_timeb ; + return clks * 1.0 / CLOCKS_PER_SEC; } #endif