26 #if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
29 # pragma comment(lib, "winmm.lib")
31 # pragma comment(lib, "libwinmm.a")
34 # include <sys/time.h>
48 mTimeStart = getCurrentMilliseconds();
53 return getCurrentMilliseconds() - mTimeStart;
56 unsigned long Timer::getCurrentMilliseconds()
58 #if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
72 gettimeofday(&now, NULL);
73 return (now.tv_sec)*1000+(now.tv_usec)/1000;