Commit 69eb69c4 authored by Marc-André Lemburg's avatar Marc-André Lemburg

Whitespace normalization.

parent e293e1f2
...@@ -500,5 +500,3 @@ h(i,i,i,2,i,3) ...@@ -500,5 +500,3 @@ h(i,i,i,2,i,3)
timeit.main(['-s', setup, timeit.main(['-s', setup,
test]) test])
...@@ -20,7 +20,7 @@ def clockres(timer): ...@@ -20,7 +20,7 @@ def clockres(timer):
while 1: while 1:
now = wallclock() now = wallclock()
if now >= stop: if now >= stop:
break break
for i in spin_loops: for i in spin_loops:
d[timer()] = 1 d[timer()] = 1
values = d.keys() values = d.keys()
...@@ -33,7 +33,7 @@ def clockres(timer): ...@@ -33,7 +33,7 @@ def clockres(timer):
return min_diff return min_diff
if __name__ == '__main__': if __name__ == '__main__':
print 'Clock resolution of various timer implementations:' print 'Clock resolution of various timer implementations:'
print 'time.clock: %10.3fus' % (clockres(time.clock) * 1e6) print 'time.clock: %10.3fus' % (clockres(time.clock) * 1e6)
print 'time.time: %10.3fus' % (clockres(time.time) * 1e6) print 'time.time: %10.3fus' % (clockres(time.time) * 1e6)
try: try:
...@@ -41,4 +41,3 @@ if __name__ == '__main__': ...@@ -41,4 +41,3 @@ if __name__ == '__main__':
print 'systimes.processtime: %10.3fus' % (clockres(systimes.processtime) * 1e6) print 'systimes.processtime: %10.3fus' % (clockres(systimes.processtime) * 1e6)
except ImportError: except ImportError:
pass pass
...@@ -418,7 +418,7 @@ class Benchmark: ...@@ -418,7 +418,7 @@ class Benchmark:
def __init__(self, name, verbose=None, timer=None, warp=None, def __init__(self, name, verbose=None, timer=None, warp=None,
calibration_runs=None): calibration_runs=None):
if name: if name:
self.name = name self.name = name
else: else:
...@@ -438,7 +438,7 @@ class Benchmark: ...@@ -438,7 +438,7 @@ class Benchmark:
if _debug: if _debug:
print 'Getting machine details...' print 'Getting machine details...'
self.machine_details = get_machine_details() self.machine_details = get_machine_details()
# Make .version an instance attribute to have it saved in the # Make .version an instance attribute to have it saved in the
# Benchmark pickle # Benchmark pickle
self.version = self.version self.version = self.version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment