mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-24 03:08:13 +08:00
Added test task countdown
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user