code duplication master
authorMischa POSLAWSKY <netris@shiar.org>
Sun, 11 Mar 2007 23:32:49 +0000 (00:32 +0100)
committerMischa POSLAWSKY <netris@shiar.org>
Sun, 11 Mar 2007 23:32:49 +0000 (00:32 +0100)
util.c

diff --git a/util.c b/util.c
index a9c9451b799f40607b796aab2e535aabd0a28f8e..92a890859a7bb5f701afa30a3614c04f2f0a9bed 100644 (file)
--- a/util.c
+++ b/util.c
@@ -212,10 +212,7 @@ void ResumeTime(void)
 
 long CurTimeval(void)
 {
-       struct timeval tv;
-
-       gettimeofday(&tv, NULL);
-       return GetTimeval(&tv) - baseTimeval;
+       return AbsTimeval() - baseTimeval;
 }
 
 static long SetITimer1(long interval, long value)