only warm up if runing all tests

SVN revision: 57467
This commit is contained in:
Carsten Haitzler 2011-03-02 09:33:47 +00:00
parent ebe7b0745e
commit 62c2d26768
1 changed files with 7 additions and 4 deletions

View File

@ -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)