warm up cpu on auto-tests

SVN revision: 54332
expedite-1.1
Carsten Haitzler 13 years ago
parent 627a2213b2
commit f9b851a365
  1. 2
      src/bin/main.c
  2. 13
      src/bin/ui.c

@ -1373,7 +1373,7 @@ main(int argc, char **argv)
ui_args(argc, argv);
evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
while (_engine_go())
{
engine_loop();

@ -453,6 +453,7 @@ _ui_setup(void)
{
Evas_Object *o;
Evas_Coord x, y, w, h;
time_t t0, t;
o = evas_object_rectangle_add(evas);
evas_object_move(o, 0, 0);
@ -551,6 +552,18 @@ _ui_setup(void)
#undef UI
_ui_menu_item_add("exit.png", "Exit", _ui_exit);
/* make sure disk io isn't going to turn up unexpectedly */
sync();
sync();
sync();
/* warm up the cpu with some spinning */
t0 = time(NULL);
for (;;)
{
t = time(NULL);
if (t - t0 > 2) break;
}
if (run_all)
{
_ui_all();

Loading…
Cancel
Save