Skip to content

Commit 5606528

Browse files
committed
add docstring
1 parent ea7d2e1 commit 5606528

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_led_animation/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def const(value): # pylint: disable=missing-docstring
3737
from time import monotonic_ns
3838

3939
def monotonic_ms():
40+
"""
41+
Return monotonic time in milliseconds.
42+
"""
4043
return monotonic_ns() // NANOS_PER_MS
4144

4245

@@ -45,7 +48,7 @@ def monotonic_ms():
4548

4649
def monotonic_ms():
4750
"""
48-
Implementation of monotonic_ns for platforms without time.monotonic_ns
51+
Implementation of monotonic_ms for platforms without time.monotonic_ns
4952
"""
5053
return int(time.monotonic() * MS_PER_SECOND)
5154

0 commit comments

Comments
 (0)