/usr/share/pyshared/Misc/timing.py is in eficas 2.0.3-1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # -*- coding: utf-8 -*-
import time
f=open('timing.out','w')
temps={}
def debut(event):
#temps[event]=time.clock()
temps[event]=time.time()
def fin(event):
#temps[event]=time.clock()-temps[event]
temps[event]=time.time()-temps[event]
f.write("%s %.4f\n"%(event,temps[event]))
|