Taken from: https://salsa.debian.org/glibc-team/glibc/-/blob/9ce19663f00176f30d6eab29fd14db3e7cd53dcf/debian/patches/hurd-i386/unsubmitted-clock_t_centiseconds.diff Some applications assume centisecond precision, or at most millisecond precision (e.g. guile). This is a work-around for them. --- getclktck.c | 5 ++--- setitimer.c | 2 +- times.c | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) commit d57f2f9b4bd007846af2fb4217486ea572579010 Author: Richard Braun Date: Tue Aug 27 11:35:31 2013 +0200 Express CPU time (clock_t of times(2)) in centiseconds diff --git a/sysdeps/mach/hurd/getclktck.c b/sysdeps/mach/hurd/getclktck.c index 69be2cc..5f7d946 100644 --- a/sysdeps/mach/hurd/getclktck.c +++ b/sysdeps/mach/hurd/getclktck.c @@ -18,12 +18,11 @@ #include -/* Return frequency of `times'. - Since Mach reports CPU times in microseconds, we always use 1 million. */ +/* Return frequency of `times'. */ int __getclktck (void) { - return 1000000; + return 100; } /* Before glibc 2.2, the Hurd actually did this differently, so we diff --git a/sysdeps/mach/hurd/setitimer.c b/sysdeps/mach/hurd/setitimer.c index 39b6b16..4992c89 100644 --- a/sysdeps/mach/hurd/setitimer.c +++ b/sysdeps/mach/hurd/setitimer.c @@ -42,7 +42,7 @@ quantize_timeval (struct timeval *tv) static time_t quantum = -1; if (quantum == -1) - quantum = 1000000 / __getclktck (); + quantum = 100 / __getclktck (); tv->tv_usec = ((tv->tv_usec + (quantum - 1)) / quantum) * quantum; if (tv->tv_usec >= 1000000) diff --git a/sysdeps/mach/hurd/times.c b/sysdeps/mach/hurd/times.c index 9e13a75..593c33a 100644 --- a/sysdeps/mach/hurd/times.c +++ b/sysdeps/mach/hurd/times.c @@ -29,7 +29,7 @@ static inline clock_t clock_from_time_value (const time_value_t *t) { - return t->seconds * 1000000 + t->microseconds; + return t->seconds * 100 + t->microseconds / 10000; } /* Store the CPU time used by this process and all its v class='path'>path: root/gnu/packages/easyrpg.scm
AgeCommit message (Expand)Author
2022-01-18gnu: easyrpg-player: Update to 0.7.0....* gnu/packages/easyrpg.scm (easyrpg-player): Update to 0.7.0. [inputs]: Add fluidsynth, fmt. Nicolas Goaziou
2022-01-18gnu: liblcf: Update to 0.7.0....* gnu/packages/easyrpg.scm (liblcf): Update to 0.7.0. Nicolas Goaziou
2021-12-13gnu: Further simplify package inputs....This is the result of running: ./pre-inst-env guix style --input-simplification=safe and manually undoing changes on a dozen of packages to reduce rebuilds (derivations for emacs, icecat, and libreoffice are unchanged.) Ludovic Courtès
2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès
2021-09-18gnu: easyrpg-player: Add wildmidi input....Suggested by moshy on #guix. * gnu/packages/easyrpg.scm (easyrpg-player)[inputs]: Add wildmidi. Tobias Geerinckx-Rice
2020-10-13gnu: easyrpg-player: Update to 0.6.2.3....* gnu/packages/easyrpg.scm (easyrpg-player): Update to 0.6.2.3. Tobias Geerinckx-Rice
2020-09-17gnu: easyrpg-player: Update to 0.6.2.2....* gnu/packages/easyrpg.scm (easyrpg-player): Update to 0.6.2.2. Tobias Geerinckx-Rice
2020-08-03gnu: easyrpg-player: Update to 0.6.2.1....* gnu/packages/easyrpg.scm (easyrpg-player): Update to 0.6.2.1. Efraim Flashner