# Simple interface to report execution times of program fragments.
# Call TSTART() to reset the timer, TSTOP(...) to report times.
u, s, cu, cs = os.times()
t0 = u+cu, s+cs, time.time()
u, s, cu, cs = os.times()
t1 = u+cu, s+cs, time.time()
for x in label: msg = msg + (x + ' ')
msg = msg + '%r user, %r sys, %r real\n' % (u, s, r)