use more compatible time.time() in place of python3 time.perf_counter()