aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2018-09-10 21:22:05 -0700
committerPaul Eggert2018-09-10 21:22:54 -0700
commitef93983344e748124ac9bc218700cee14a0df947 (patch)
tree0d76e8c9a0a381082608f445ddc69ec9f7a7e311 /lib-src
parentfc389d3a836c11893ac5c5894915e9b8b4868799 (diff)
downloademacs-ef93983344e748124ac9bc218700cee14a0df947.tar.gz
emacs-ef93983344e748124ac9bc218700cee14a0df947.zip
Adjust to TIMESPEC_HZ renaming
Adjust to lib/timespec.h’s renaming of TIMESPEC_RESOLUTION and LOG10_TIMESPEC_RESOLUTION to TIMESPEC_HZ and LOG10_TIMESPEC_HZ. The old names were misnomers. All uses changed.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/profile.c b/lib-src/profile.c
index 3818d33e689..cccdfbc7c84 100644
--- a/lib-src/profile.c
+++ b/lib-src/profile.c
@@ -43,7 +43,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
43static struct timespec TV1; 43static struct timespec TV1;
44static int watch_not_started = 1; /* flag */ 44static int watch_not_started = 1; /* flag */
45static char time_string[INT_STRLEN_BOUND (uintmax_t) + sizeof "." 45static char time_string[INT_STRLEN_BOUND (uintmax_t) + sizeof "."
46 + LOG10_TIMESPEC_RESOLUTION]; 46 + LOG10_TIMESPEC_HZ];
47 47
48/* Reset the stopwatch to zero. */ 48/* Reset the stopwatch to zero. */
49 49
@@ -66,7 +66,7 @@ get_time (void)
66 int ns = TV2.tv_nsec; 66 int ns = TV2.tv_nsec;
67 if (watch_not_started) 67 if (watch_not_started)
68 exit (EXIT_FAILURE); /* call reset_watch first ! */ 68 exit (EXIT_FAILURE); /* call reset_watch first ! */
69 sprintf (time_string, "%"PRIuMAX".%0*d", s, LOG10_TIMESPEC_RESOLUTION, ns); 69 sprintf (time_string, "%"PRIuMAX".%0*d", s, LOG10_TIMESPEC_HZ, ns);
70 return time_string; 70 return time_string;
71} 71}
72 72