aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/resmgr.cpp
diff options
context:
space:
mode:
authorAndre Heider2009-02-21 19:16:38 +0000
committerAndre Heider2009-02-21 19:16:38 +0000
commitc9793552af624510eba3ed4d0c97c60bd5bad08a (patch)
treef79b35f6dda47869955a37055d2ed06aa590552d /engines/sci/gfx/resmgr.cpp
parent6f022278e6ce10cf1df9b6b2696c09deaeb757d9 (diff)
downloadscummvm-rg350-c9793552af624510eba3ed4d0c97c60bd5bad08a.tar.gz
scummvm-rg350-c9793552af624510eba3ed4d0c97c60bd5bad08a.tar.bz2
scummvm-rg350-c9793552af624510eba3ed4d0c97c60bd5bad08a.zip
replace sci_gettime
svn-id: r38730
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