aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/tier0/fasttimer.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/public/tier0/fasttimer.h')
-rw-r--r--mp/src/public/tier0/fasttimer.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/mp/src/public/tier0/fasttimer.h b/mp/src/public/tier0/fasttimer.h
index 0f49a43e..79496a9e 100644
--- a/mp/src/public/tier0/fasttimer.h
+++ b/mp/src/public/tier0/fasttimer.h
@@ -499,10 +499,10 @@ public:
CLimitTimer() {}
CLimitTimer( uint64 cMicroSecDuration ) { SetLimit( cMicroSecDuration ); }
void SetLimit( uint64 m_cMicroSecDuration );
- bool BLimitReached();
+ bool BLimitReached() const;
- int CMicroSecOverage();
- uint64 CMicroSecLeft();
+ int CMicroSecOverage() const;
+ uint64 CMicroSecLeft() const;
private:
uint64 m_lCycleLimit;
@@ -526,7 +526,7 @@ inline void CLimitTimer::SetLimit( uint64 cMicroSecDuration )
// Purpose: Determines whether our specified time period has passed
// Output: true if at least the specified time period has passed
//-----------------------------------------------------------------------------
-inline bool CLimitTimer::BLimitReached( )
+inline bool CLimitTimer::BLimitReached() const
{
CCycleCount cycleCount;
cycleCount.Sample( );
@@ -538,7 +538,7 @@ inline bool CLimitTimer::BLimitReached( )
// Purpose: If we're over our specified time period, return the amount of the overage.
// Output: # of microseconds since we reached our specified time period.
//-----------------------------------------------------------------------------
-inline int CLimitTimer::CMicroSecOverage()
+inline int CLimitTimer::CMicroSecOverage() const
{
CCycleCount cycleCount;
cycleCount.Sample();
@@ -555,7 +555,7 @@ inline int CLimitTimer::CMicroSecOverage()
// Purpose: If we're under our specified time period, return the amount under.
// Output: # of microseconds until we reached our specified time period, 0 if we've passed it
//-----------------------------------------------------------------------------
-inline uint64 CLimitTimer::CMicroSecLeft()
+inline uint64 CLimitTimer::CMicroSecLeft() const
{
CCycleCount cycleCount;
cycleCount.Sample();