Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.

Commit e42911b

Browse files
committed
Fix sleep times. Unit is seconds not tenth of a second.
1 parent 455a767 commit e42911b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/hello_clock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ async def print_every_second():
66
while True:
77
for i in range(60):
88
print(i, 's')
9-
await asyncio.sleep(1 * 0.1)
9+
await asyncio.sleep(1)
1010

1111

1212
async def print_every_minute():
1313
for i in range(1, 10):
14-
await asyncio.sleep(60 * 0.1)
14+
await asyncio.sleep(60)
1515
print(i, 'minute')
1616

1717

0 commit comments

Comments
 (0)