Ensure accumulated time is also displayed in the terminal output.
@@ -509,8 +509,15 @@ get_str_visitors (void)
static char *
get_str_proctime (void)
{
+ char *s = NULL;
uint64_t secs = (long long) end_proc - start_proc;
- char *s = xmalloc (snprintf (NULL, 0, "%" PRIu64 "s", secs) + 1);
+
+#ifdef TCB_BTREE
+ if (conf.store_accumulated_time)
+ secs = (uint64_t) ht_get_genstats ("accumulated_time");
+#endif
+
+ s = xmalloc (snprintf (NULL, 0, "%" PRIu64 "s", secs) + 1);
sprintf (s, "%" PRIu64 "s", secs);
return s;
