mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
replace sci_gettime
svn-id: r38730
This commit is contained in:
parent
6f022278e6
commit
c9793552af
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user