MCPcopy Create free account
hub / github.com/ioi/isolate / check_timeout

Function check_timeout

isolate.c:564–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564static void
565check_timeout(void)
566{
567 if (wall_timeout)
568 {
569 int wall_ms = get_wall_time_ms();
570 if (wall_ms > wall_timeout)
571 err("TO: Time limit exceeded (wall clock)");
572 if (verbose > 1)
573 fprintf(stderr, "[wall time check: %d msec]\n", wall_ms);
574 }
575 if (timeout)
576 {
577 int ms = get_run_time_ms(NULL);
578 if (verbose > 1)
579 fprintf(stderr, "[time check: %d msec]\n", ms);
580 if (ms > timeout && ms > extra_timeout)
581 err("TO: Time limit exceeded");
582 }
583}
584
585static void
586box_keeper(void)

Callers 1

box_keeperFunction · 0.85

Calls 2

get_wall_time_msFunction · 0.85
get_run_time_msFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…