From 16ee78a4be1dfa3a6a7821cecafa0a45f4488564 Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Thu, 24 May 2007 19:02:56 +0000 Subject: [PATCH] more accurate timing --- direct/src/showbase/PythonUtil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index a1c8b77006..5f2195fb8c 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -2965,9 +2965,9 @@ def quickProfile(name="unnamed"): # at the time that PythonUtil is loaded if(not base.config.GetBool("profile-debug",0)): #dumb timings - st=time.time() + st=globalClock.getRealTime() f(*args,**kArgs) - s=time.time()-st + s=globalClock.getRealTime()-st print "Function %s.%s took %s seconds"%(f.__module__, f.__name__,s) else: #detailed profile, stored in base.stats under (