时间:
import time
time.time()
time.clock()
多行连接:
- ()
- \
计时器:
import time
import threading
import os
def foo():
print time.time()
threading.Timer(1, foo).start()
if __name__ == "__main__":
start_time = time.clock()
foo()
while 1:
if time.clock()-start_time > 10:
os._exit(0)
时间漂零
1509090489.31
1509090490.32
1509090491.33
1509090492.34
1509090493.35
1509090494.35
1509090495.37
1509090496.37
1509090497.38
1509090498.4
1509090499.41