X7ROOT File Manager
Current Path:
/lib64/python2.7/Demo/rpc
lib64
/
python2.7
/
Demo
/
rpc
/
??
..
??
MANIFEST
(361 B)
??
README
(1.23 KB)
??
T.py
(575 B)
??
T.pyc
(952 B)
??
T.pyo
(952 B)
??
mountclient.py
(6.48 KB)
??
mountclient.pyc
(5.58 KB)
??
mountclient.pyo
(5.58 KB)
??
nfsclient.py
(5.2 KB)
??
nfsclient.pyc
(6.74 KB)
??
nfsclient.pyo
(6.74 KB)
??
rnusersclient.py
(2.57 KB)
??
rnusersclient.pyc
(5.01 KB)
??
rnusersclient.pyo
(5.01 KB)
??
rpc.py
(26.98 KB)
??
rpc.pyc
(29.72 KB)
??
rpc.pyo
(29.72 KB)
??
test
(697 B)
??
xdr.py
(4.93 KB)
??
xdr.pyc
(7.72 KB)
??
xdr.pyo
(7.72 KB)
Editing: T.py
# Simple interface to report execution times of program fragments. # Call TSTART() to reset the timer, TSTOP(...) to report times. import sys, os, time def TSTART(): global t0, t1 u, s, cu, cs = os.times() 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.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 + '%r user, %r sys, %r real\n' % (u, s, r) sys.stderr.write(msg)
Upload File
Create Folder