mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-21 04:58:12 +08:00
10 lines
169 B
Python
10 lines
169 B
Python
import time
|
|
|
|
# simple countdown
|
|
def count(n):
|
|
start_time = time.time()
|
|
while n > 0:
|
|
n -= 1
|
|
stop_time = time.time()
|
|
return stop_time - start_time
|