]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement CLOCK_MONOTONIC_RAW (linux >= 2.6.28).
authornetchild <netchild@FreeBSD.org>
Sun, 12 Jul 2020 09:51:09 +0000 (09:51 +0000)
committernetchild <netchild@FreeBSD.org>
Sun, 12 Jul 2020 09:51:09 +0000 (09:51 +0000)
commit936a891b0779e5bb0733d129e570e10e3924c95c
tree6be97106252076f291dc1e10ef63b16cc6279f7b
parentac1ac499477bd233e9f66a5f5f4e63228dc5773a
Implement CLOCK_MONOTONIC_RAW (linux >= 2.6.28).

It is documented as a raw hardware-based clock not subject to NTP or
incremental adjustments. With this "not as precise as CLOCK_MONOTONIC"
description in mind, map it to our CLOCK_MONOTNIC_FAST (the same
mapping as for the linux CLOCK_MONOTONIC_COARSE).

This is needed for the webcomponent of steam (chromium) and some
other steam component or game.

The linux-steam-utils port contains a LD_PRELOAD based fix for this.
There this is mapped to CLOCK_MONOTONIC.
As an untrained ear/eye (= the majority of people) is normaly not
noticing a difference of jitter in the 10-20 ms range, specially
if you don't pay attention like for example in a browser session
while watching a video stream, the mapping to CLOCK_MONOTONIC_FAST
seems more appropriate than to CLOCK_MONOTONIC.
sys/compat/linux/linux_time.c