#coding=utf-8
import time
num = 0
#onoff = True
def p_time(h,m,s):
print "%d:%d:%d"%(h,m,s)
def format():
d = 0
h = 0
m = 0
s = 0
global num
while True:
num = tick()
s = num
if s > 10:
num = 0
s = 0
if m > 60:
m = 0
if h > 3:
h = 0
d +=1
print "%d:%d:%d:%d"%(d,h,m,s)
else :
h += 1
print "%d:%d:%d:%d"%(d,h,m,s)
else :
m +=1
print "%d:%d:%d:%d"%(d,h,m,s)
else :
print "%d:%d:%d:%d"%(d,h,m,s)
# if ==
# s = 0
# m += 1
# print "%d:%d:%d"%(h,m,s)
# elif m > 60:
# s = 0
# m = 0
# h += 1
# print "%d:%d:%d"%(h,m,s)
def tick():
global num
while True:
time.sleep(0.01)
num += 1
#print "num:%d"%num
return num
if __name__ == '__main__':
# while True:
# s = tick()
# print "s:%d"%s
# time.sleep(3)
# print "s:%d"%s
format()
import time
num = 0
#onoff = True
def p_time(h,m,s):
print "%d:%d:%d"%(h,m,s)
def format():
d = 0
h = 0
m = 0
s = 0
global num
while True:
num = tick()
s = num
if s > 10:
num = 0
s = 0
if m > 60:
m = 0
if h > 3:
h = 0
d +=1
print "%d:%d:%d:%d"%(d,h,m,s)
else :
h += 1
print "%d:%d:%d:%d"%(d,h,m,s)
else :
m +=1
print "%d:%d:%d:%d"%(d,h,m,s)
else :
print "%d:%d:%d:%d"%(d,h,m,s)
# if ==
# s = 0
# m += 1
# print "%d:%d:%d"%(h,m,s)
# elif m > 60:
# s = 0
# m = 0
# h += 1
# print "%d:%d:%d"%(h,m,s)
def tick():
global num
while True:
time.sleep(0.01)
num += 1
#print "num:%d"%num
return num
if __name__ == '__main__':
# while True:
# s = tick()
# print "s:%d"%s
# time.sleep(3)
# print "s:%d"%s
format()