/usr/share/pyshared/mx/DateTime/mxDateTime/testnow.py is in python-egenix-mxdatetime 3.2.1-1ubuntu1.
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 14 15 16 17 18 19 20 21 22 23 24 | from mx.DateTime import now
from time import time, clock
rounds = range(10000)
# Warm-up
for i in rounds:
x = now()
for i in rounds:
x = time()
c = clock()
for i in rounds:
x = now()
print 'now(): %5.2f sec.' % (clock() - c)
c = clock()
for i in rounds:
x = time()
print 'time(): %5.2f sec.' % (clock() - c)
|