Краткое сравнение популярных функций измерения времени

Какую реальную точность можно ожидать от функции возвращающей время, а сколько времени она выполняется сама? Попытка замерить и сравнить несколько десятков функций, доступных программисту на C++. Вот что получилось

https://habr.com/ru/articles/818965/

#rdtsc #rdtscp #windows #linux #QueryPerformanceCounter #clock_gettime #gettimeofday #CNTVCT_EL0

Краткое сравнение популярных функций измерения времени

Попросил DALL-E нарисовать программиста, выбирающего секундомер. Вот результат ) Решил обновить свою старую крохотную библиотечку для тайминга кода. Измерение коротких временнЫх интервалов в ней...

Хабр

Swift’s native Clocks are very inefficient

By which I mean, things like ContinuousClock and SuspendingClock.

In absolute terms they don't have much overhead - think sub-microsecond for most uses. Which makes them perfectly acceptable when they're used sporadically (e.g. only a few times per second).

However, if you need to deal with time and timing more frequently, their inefficiency can become a serious bottleneck.

I stumbled into this because of a fairly common and otherwise uninteresting pattern - throttling UI updates on an [...]

https://wadetregaskis.com/swifts-native-clocks-are-very-inefficient/

Swift’s native Clocks are very inefficient – Wade Tregaskis