最終更新:2021-08-16 (月) 05:30:57 (956d)
Python/時間計測
Python/time.time_ns
- 返す値がnsなだけ
Python/time.time
- +-16ms (Windows)
Python/time.get_clock_info
Windows
Python 3.8.2 (Windows) time Python/time.time() namespace(adjustable=True, implementation='GetSystemTimeAsFileTime()', monotonic=False, resolution=0.015625) monotonic Python/time.monotonic?() namespace(adjustable=False, implementation='GetTickCount64()', monotonic=True, resolution=0.015625) perf_counter Python/time.perf_counter() namespace(adjustable=False, implementation='QueryPerformanceCounter()', monotonic=True, resolution=1e-07) process_time Python/time.process_time() namespace(adjustable=False, implementation='GetProcessTimes()', monotonic=True, resolution=1e-07) thread_time Python/time.thread_time?() namespace(adjustable=False, implementation='GetThreadTimes?()', monotonic=True, resolution=1e-07)
Ubuntu
Python 3.6.9? (Ubuntu 18.04) time Python/time.time() namespace(adjustable=True, implementation='clock_gettime(CLOCK_REALTIME?)', monotonic=False, resolution=1e-09) monotonic Python/time.monotonic?() namespace(adjustable=False, implementation='clock_gettime(CLOCK_MONOTONIC?)', monotonic=True, resolution=1e-09) perf_counter Python/time.perf_counter() namespace(adjustable=False, implementation='clock_gettime(CLOCK_MONOTONIC?)', monotonic=True, resolution=1e-09) process_time Python/time.process_time() namespace(adjustable=False, implementation='clock_gettime(CLOCK_PROCESS_CPUTIME_ID?)', monotonic=True, resolution=1e-09) thread_time Python/time.thread_time?() unknown clock