From e69d3fec87c4624e1d88d66efb7232ba5818a516 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 17 Feb 1994 12:36:58 +0000 Subject: Use time.time() instead of time.millitimer() --- Demo/rpc/T.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Demo/rpc') diff --git a/Demo/rpc/T.py b/Demo/rpc/T.py index 475372bfff..abf3a06d05 100644 --- a/Demo/rpc/T.py +++ b/Demo/rpc/T.py @@ -6,17 +6,17 @@ import sys, os, time def TSTART(): global t0, t1 u, s, cu, cs = os.times() - t0 = u+cu, s+cs, time.millitimer() + t0 = u+cu, s+cs, time.time() def TSTOP(*label): global t0, t1 u, s, cu, cs = os.times() - t1 = u+cu, s+cs, time.millitimer() + t1 = u+cu, s+cs, time.time() tt = [] for i in range(3): tt.append(t1[i] - t0[i]) [u, s, r] = tt msg = '' for x in label: msg = msg + (x + ' ') - msg = msg + `u` + ' user, ' + `s` + ' sys, ' + `r*0.001` + ' real\n' + msg = msg + `u` + ' user, ' + `s` + ' sys, ' + `r` + ' real\n' sys.stderr.write(msg) -- cgit v1.2.1