[FIX] use `time.clock` when `time.perf_counter` is not available