import time
repeat_interval = 5
waiting_interval = 2
destination = time.time() + repeat_interval
for x in xrange(100000000):
# Your code here
time.sleep(0.001)
now = time.time()
if now > destination:
destination += repeat_interval
print('Go sleeping')
time.sleep(waiting_interval)
print('Waking up')