commit 6159ff08e48698c1e9482f2b02adc457b88d4d71
Author: Aaron LI <[email protected]>
Date: Sun Feb 21 15:48:46 2021 +0800
grdc(6): Improve scrolling timestamp precisions
Use clock_gettime() to obtain the current time with higher precision,
which is used to improve the scrolling timestamp, trying to make the
scrolling end on the integral seconds.
Inspired by OpenBSD's implementation.
Summary of changes:
games/grdc/grdc.c | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6159ff08e48698c1e9482f2b02adc457b88d4d71
--
DragonFly BSD source repository