Skip to content

Commit fbfff21

Browse files
committed
the more the lintier
1 parent 3425094 commit fbfff21

File tree

2 files changed

+3
-166
lines changed

2 files changed

+3
-166
lines changed

adafruit_bno080/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ def elapsed_time(func):
145145
"""Print the runtime of the decorated function"""
146146

147147
def wrapper_timer(*args, **kwargs):
148-
start_time = time.monotonic_ns() # 1
148+
start_time = time.monotonic() # 1
149149
value = func(*args, **kwargs)
150-
end_time = time.monotonic_ns() # 2
150+
end_time = time.monotonic() # 2
151151
run_time = end_time - start_time # 3
152-
print("Finished", func.__name__, "in", (run_time / 1000000.0), "ms")
152+
print("Finished", func.__name__, "in", (run_time * 1000.0), "ms")
153153
return value
154154

155155
return wrapper_timer

adafruit_bno080/uart.py.debug

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)