Under gdb, things don't happen fast, so we need to be able to disable
the "pane_too_long()" test.
Signed-off-by: NeilBrown <neil@brown.name>
}
time_t edlib_timing = 0;
+/* Set this to False when using gdb. It must be
+ * extern to avoid it being optimised away.
+ */
+extern bool edlib_timing_allowed;
+bool edlib_timing_allowed = True;
int times_up(void)
{
void time_starts(void)
{
- edlib_timing = time(NULL);
+ if (edlib_timing_allowed)
+ edlib_timing = time(NULL);
}
void time_ends(void)