On 13/05/20 17:05 +0200, Mark Kettenis wrote: > > The update currently does the work of clock_gettime(), but it can > > probably be changed to only update the timehands and move the logic > > elsewhere. Note that if we expose only the timehands to userland, most > > of the bintime functionality has to also be made available there. Or so > > I think. > > Unfortunately what you're doing here isn't good enough. You're only > exporting low-resolution versions of the clocks. The equivalent of > what Linux class CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE. > And I'm fairly certain that isn't what the applications want. Why > else would they be calling clock_gettime() a gazillion times per > second...
Most of the big programs use CLOCK_MONOTONIC.