Changeset 7909 in orxonox.OLD for branches/gui/src
- Timestamp:
- May 27, 2006, 4:23:59 PM (19 years ago)
- Location:
- branches/gui/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/graphics/importer/material.h
r7876 r7909 16 16 17 17 #include <vector> 18 #include "SDL_image.h"19 20 18 #include "texture.h" 21 19 -
branches/gui/src/lib/util/timer.cc
r7900 r7909 12 12 #include <sys/time.h> 13 13 14 #ifdef __WIN32__ 15 #include <windows.h> 16 int gettimeofday 17 (struct timeval* tp, void* tzp) { 18 DWORD t; 19 t = timeGetTime(); 20 tp->tv_sec = t / 1000; 21 tp->tv_usec = 1000 * (t % 1000 ); 22 /* 0 indicates success. */ 23 return 0; 24 } 25 #endif 26 14 27 /** 15 28 * @returns the current time in Second exact to the micro-second … … 18 31 19 32 #if HAVE_CLOCK_GETTIME 33 20 34 // use the POSIX realtime clock to get the current time 21 35 struct timespec tp; -
branches/gui/src/story_entities/game_world.cc
r7900 r7909 367 367 this->frameTimes[frameTimesIndex] = currentFrame - this->lastFrame; 368 368 this->lastFrame = currentFrame; 369 printf("%f\n", currentFrame); 369 370 ++this->cycle; 370 371 this->dtS = 0.0;
Note: See TracChangeset
for help on using the changeset viewer.