only warm up if runing all tests

SVN revision: 57467
expedite-1.1
Carsten Haitzler 12 years ago
parent ebe7b0745e
commit 62c2d26768
  1. 11
      src/bin/ui.c

@ -582,11 +582,14 @@ _ui_setup(void)
sync();
#endif
/* warm up the cpu with some spinning */
t0 = time(NULL);
for (;;)
if (run_all)
{
t = time(NULL);
if (t - t0 > 2) break;
t0 = time(NULL);
for (;;)
{
t = time(NULL);
if (t - t0 > 2) break;
}
}
if (run_all)

Loading…
Cancel
Save