Author: justi9
Date: 2008-12-10 15:49:13 -0500 (Wed, 10 Dec 2008)
New Revision: 2967
Modified:
mgmt/trunk/cumin/python/cumin/job.py
Log:
Use time() instead of clock() to calculate the duration
Modified: mgmt/trunk/cumin/python/cumin/job.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/job.py 2008-12-10 20:03:04 UTC (rev 2966)
+++ mgmt/trunk/cumin/python/cumin/job.py 2008-12-10 20:49:13 UTC (rev 2967)
@@ -5,7 +5,7 @@
from wooly.forms import *
from wooly.resources import *
from wooly.tables import *
-from time import clock
+from time import time
from stat import *
from widgets import *
@@ -227,7 +227,7 @@
def render_content(self, session, data):
since = data["q_date"]
- return fmt_duration(clock() - secs(since))
+ return fmt_duration(time() - secs(since))
class JobTab(JobSet):
def __init__(self, app, name):
Show replies by date