BVB Source Codes

CRYENGINE Show ServerTimer.h Source code

Return Download CRYENGINE: download ServerTimer.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __SERVERTIMER_H__
  4. #define __SERVERTIMER_H__
  5.  
  6. #pragma once
  7.  
  8. class CServerTimer : public ITimer
  9. {
  10. public:
  11.         virtual void              ResetTimer();
  12.         virtual void              UpdateOnFrameStart();
  13.         virtual float             GetCurrTime(ETimer which = ETIMER_GAME) const;
  14.         virtual const CTimeValue& GetFrameStartTime(ETimer which = ETIMER_GAME) const;
  15.         virtual CTimeValue        GetAsyncTime() const;
  16.         virtual float             GetReplicationTime() const;
  17.         virtual float             GetAsyncCurTime();
  18.         virtual float             GetFrameTime(ETimer which = ETIMER_GAME) const;
  19.         virtual float             GetRealFrameTime() const;
  20.         virtual float             GetTimeScale() const;
  21.         virtual float             GetTimeScale(uint32 channel) const;
  22.         virtual void              SetTimeScale(float scale, uint32 channel = 0);
  23.         virtual void              ClearTimeScales();
  24.         virtual void              EnableTimer(const bool bEnable);
  25.         virtual bool              IsTimerEnabled() const;
  26.         virtual float             GetFrameRate();
  27.         virtual float             GetProfileFrameBlending(float* pfBlendTime = 0, int* piBlendMode = 0) { return 1.f; }
  28.         virtual void              Serialize(TSerialize ser);
  29.         virtual bool              PauseTimer(ETimer which, bool bPause);
  30.         virtual bool              IsTimerPaused(ETimer which);
  31.         virtual bool              SetTimer(ETimer which, float timeInSeconds);
  32.         virtual void              SecondsToDateUTC(time_t time, struct tm& outDateUTC);
  33.         virtual time_t            DateToSecondsUTC(struct tm& timePtr);
  34.         virtual float             TicksToSeconds(int64 ticks) const;
  35.         virtual int64             GetTicksPerSecond();
  36.         virtual ITimer*           CreateNewTimer() { return new CServerTimer(); }
  37.  
  38.         static ITimer*            Get()
  39.         {
  40.                 return &m_this;
  41.         }
  42.  
  43. private:
  44.         CServerTimer();
  45.  
  46.         CTimeValue          m_remoteFrameStartTime;
  47.         float               m_frameTime;
  48.         float                           m_replicationTime;
  49.  
  50.         static CServerTimer m_this;
  51. };
  52.  
  53. #endif
  54.  
downloadServerTimer.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top