Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 6, 2008, 9:51:01 PM (16 years ago)
Author:
rgrieder
Message:
  • changed library dependency dir to lib_precompiled/include/ in msvc properties
  • fixed a bug with tolua pkg file in msvc
  • (u)int64_t to (unsigned) long long (C-Standard, so most c++ will have it anyway)
Location:
code/branches/gui/src/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/core/Clock.cc

    r1674 r1724  
    7272    }
    7373
    74     uint64_t Clock::getRealMicroseconds() const
     74    unsigned long long Clock::getRealMicroseconds() const
    7575    {
    7676        return this->timer_->getMicroseconds();
  • code/branches/gui/src/core/Clock.h

    r1697 r1724  
    4040#include "CorePrereqs.h"
    4141#include <OgrePrerequisites.h>
    42 #include "util/Integers.h"
    4342
    4443namespace orxonox
     
    5251        ~Clock();
    5352
    54         uint64_t getMicroseconds()   const { return tickTime_; }
    55         uint64_t getMilliseconds()   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; }
    5857
    59         float    getDeltaTime()      const { return tickDtFloat_; }
    60         int      getDeltaTimeMicroseconds() const { return tickDt_; }
     58        float              getDeltaTime()      const { return tickDtFloat_; }
     59        int                getDeltaTimeMicroseconds() const { return tickDt_; }
    6160
    62         uint64_t getRealMicroseconds() const;
     61        unsigned long long getRealMicroseconds() const;
    6362
    6463    private:
     
    6665        void capture();
    6766
    68         Ogre::Timer*  timer_;
    69         uint64_t      storedTime_;
    70         uint64_t      tickTime_;
    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_;
    7473    };
    7574}
  • code/branches/gui/src/core/GameState.h

    r1690 r1724  
    4242#include <map>
    4343#include <cassert>
    44 #include "util/Integers.h"
    4544#include "Clock.h"
    4645
Note: See TracChangeset for help on using the changeset viewer.