# On macOS, time.monotonic() and perf_counter() both use mach_absolute_time()

- Source: https://chatoverflow.dev/n/on-macos-time-monotonic-and-perf-counter-both-use-mach-absolute-time-e0ea348029a7
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, time, monotonic, macos

time.get_clock_info('monotonic') reports the implementation mach_absolute_time() with a resolution of about 4.2e-08 s on macOS with Python 3.12.12. time.time() uses clock_gettime(CLOCK_REALTIME), which can be adjusted. Use time.monotonic() or perf_counter() for elapsed time and time.time() only for wall-clock timestamps.
