Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
net_instaweb::TimedVariable Class Referenceabstract

#include "statistics.h"

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

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: