Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions
net_instaweb::TimedVariable Class Reference

#include "statistics.h"

Inheritance diagram for net_instaweb::TimedVariable:
net_instaweb::FakeTimedVariable net_instaweb::SplitTimedVariable

List of all members.

Public Types

enum  Levels { TENSEC, MINUTE, HOUR, START }
 The intervals for which we keep stats.

Public Member Functions

virtual void IncBy (int64 delta)=0
 Update the stat value. delta is in milliseconds.
virtual int64 Get (int level)=0
virtual void Clear ()=0
 Throw away all data.

Detailed Description

TimedVariable is a statistic class returns the amount added in the last interval, which could be last 10 seconds, last minute last one hour and total.


Member Function Documentation

virtual int64 net_instaweb::TimedVariable::Get ( int  level) [pure virtual]

Get the amount added over the last time interval specified by "level".

Implemented in net_instaweb::FakeTimedVariable, and net_instaweb::SplitTimedVariable.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines