Python / time === ###### tags: `Python` ###### tags: `Python`, `time`, `sleep`, `perf_counter` <br> [TOC] <br> ## 教學 - [time.perf_counter() function in Python](https://www.geeksforgeeks.org/time-perf_counter-function-in-python/) ```python= # Python program to show time by perf_counter() from time import perf_counter # Start the stopwatch / counter t1_start = perf_counter() # Stop the stopwatch / counter t1_stop = perf_counter() print("Elapsed time:", t1_stop, t1_start) ```