Added time.sleep function
This commit is contained in:
parent
819a4a907b
commit
0db4d4fc14
3 changed files with 25 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
import sys
|
||||
import thread
|
||||
import time
|
||||
|
||||
main() {
|
||||
thread.create(work)
|
||||
|
@ -10,6 +11,7 @@ main() {
|
|||
|
||||
work() {
|
||||
sys.write(1, "[ ] start\n", 10)
|
||||
time.sleep(10 * 1000 * 1000)
|
||||
sys.write(1, "[x] end\n", 8)
|
||||
sys.exit(0)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue