aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/resmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/gfx/resmgr.cpp')
-rw-r--r--engines/sci/gfx/resmgr.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/sci/gfx/resmgr.cpp b/engines/sci/gfx/resmgr.cpp
index 654a859896..62f0493775 100644
--- a/engines/sci/gfx/resmgr.cpp
+++ b/engines/sci/gfx/resmgr.cpp
@@ -35,6 +35,8 @@
#include "sci/include/gfx_resmgr.h"
#include "sci/include/gfx_state_internal.h"
+#include "common/system.h"
+
namespace Sci {
#undef TIME_PICDRAWING
@@ -291,9 +293,8 @@ gfxr_pic_t *gfxr_get_pic(gfx_resstate_t *state, int nr, int maps, int flags, int
}
#ifdef TIME_PICDRAWING
{
- long start_sec, start_usec;
- long end_sec, end_usec;
- sci_gettime(&start_sec, &start_usec);
+ uint32 start_msec, end_msec;
+ start_msec = g_system->getMillis();
#endif
if (gfxr_interpreter_calculate_pic(state, pic, unscaled_pic, flags, default_palette, nr, state->misc_payload)) {
gfxr_free_pic(state->driver, pic);
@@ -303,8 +304,8 @@ gfxr_pic_t *gfxr_get_pic(gfx_resstate_t *state, int nr, int maps, int flags, int
return NULL;
}
#ifdef TIME_PICDRAWING
- sci_gettime(&end_sec, &end_usec);
- printf("\nTIME: %d for drawing pic.%03d\n", (end_sec - start_sec) * 1000000 + (end_usec - start_usec), nr);
+ end_msec = g_system->getMillis();
+ printf("\nTIME: %d ms for drawing pic.%03d\n", end_msec - start_msec, nr);
}
#endif