Changeset 1724 for code/branches/gui/src/core
- Timestamp:
- Sep 6, 2008, 9:51:01 PM (16 years ago)
- Location:
- code/branches/gui/src/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/Clock.cc
r1674 r1724 72 72 } 73 73 74 u int64_tClock::getRealMicroseconds() const74 unsigned long long Clock::getRealMicroseconds() const 75 75 { 76 76 return this->timer_->getMicroseconds(); -
code/branches/gui/src/core/Clock.h
r1697 r1724 40 40 #include "CorePrereqs.h" 41 41 #include <OgrePrerequisites.h> 42 #include "util/Integers.h"43 42 44 43 namespace orxonox … … 52 51 ~Clock(); 53 52 54 u int64_tgetMicroseconds() const { return tickTime_; }55 u int64_tgetMilliseconds() const { return tickTime_ / 1000; }56 int getSeconds() const { return tickTime_ / 1000000; }57 float getSecondsPrecise() const { return (float)tickTime_ / 1000000.0f; }53 unsigned long long getMicroseconds() const { return tickTime_; } 54 unsigned long long getMilliseconds() const { return tickTime_ / 1000; } 55 int getSeconds() const { return tickTime_ / 1000000; } 56 float getSecondsPrecise() const { return (float)tickTime_ / 1000000.0f; } 58 57 59 float getDeltaTime() const { return tickDtFloat_; }60 int getDeltaTimeMicroseconds() const { return tickDt_; }58 float getDeltaTime() const { return tickDtFloat_; } 59 int getDeltaTimeMicroseconds() const { return tickDt_; } 61 60 62 u int64_tgetRealMicroseconds() const;61 unsigned long long getRealMicroseconds() const; 63 62 64 63 private: … … 66 65 void capture(); 67 66 68 Ogre::Timer* timer_;69 u int64_tstoredTime_;70 u int64_ttickTime_;71 int tickDt_;72 float tickDtFloat_;73 unsigned long lastTimersTime_;67 Ogre::Timer* timer_; 68 unsigned long long storedTime_; 69 unsigned long long tickTime_; 70 int tickDt_; 71 float tickDtFloat_; 72 unsigned long lastTimersTime_; 74 73 }; 75 74 } -
code/branches/gui/src/core/GameState.h
r1690 r1724 42 42 #include <map> 43 43 #include <cassert> 44 #include "util/Integers.h"45 44 #include "Clock.h" 46 45
Note: See TracChangeset
for help on using the changeset viewer.