#!/usr/bin/python3 import time t0 = time.time() while True: t1 = time.time() if t1 - t0 > 5.0: break print('repeat! {}'.format(t1)) print('done')