time.perf_counter() doesn't work with any python earlier than v3.3