git: grdc(6): Improve scrolling timestamp precisions

Aaron LI aly at crater.dragonflybsd.org
Sun Feb 21 00:18:30 PST 2021


commit 6159ff08e48698c1e9482f2b02adc457b88d4d71
Author: Aaron LI <aly at aaronly.me>
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


More information about the Commits mailing list