def microtime(get_as_float=False): if get_as_float: return time.time() else: return '%.8f %d' % math.modf(time.time())