diff --git a/proso/util.py b/proso/util.py
index <HASH>..<HASH> 100644
--- a/proso/util.py
+++ b/proso/util.py
@@ -6,11 +6,12 @@ _timers = {}
 
 
 def timer(name):
-    now = time.clock()
+    now = time.time()
+    diff = None
     if name in _timers:
         diff = now - _timers[name]
-        return diff
     _timers[name] = now
+    return diff
 
 
 def instantiate(classname, *args, **kwargs):
update timer to be able to measure time more times