Skip to content

Commit

Permalink
Avoid name clashes in demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros committed Apr 12, 2021
1 parent 655e25f commit 95a6e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/demo/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
stdout.write('\nStarting speed test ({} cycles) '.format(cycles))
stdout.flush()

start_time = interface.time()
start_time = interface.milli_time()
for _ in range(cycles):
for i in range(256):
interface.set_led(i)
Expand All @@ -32,6 +32,6 @@
stdout.flush()

calls = 512 * cycles
duration = (interface.time() - start_time) / 1000
duration = (interface.milli_time() - start_time) / 1000
stdout.write('\n{} calls in {:.02f} seconds ({} calls/sec)\n'.format(
calls, duration, int(calls // duration)))

0 comments on commit 95a6e18

Please sign in to comment.