aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
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