Page Speed Optimization Libraries
1.3.25.1
|
TimedVariable implementation that only updates a basic Variable. More...
#include "statistics.h"
Public Member Functions | |
FakeTimedVariable (Variable *var) | |
virtual void | IncBy (int64 delta) |
Update the stat value. delta is in milliseconds. | |
virtual int64 | Get (int level) |
virtual void | Clear () |
Throw away all data. | |
Protected Attributes | |
Variable * | var_ |
TimedVariable implementation that only updates a basic Variable.
virtual int64 net_instaweb::FakeTimedVariable::Get | ( | int | level | ) | [inline, virtual] |
Get the amount added over the last time interval specified by "level".
This is a default implementation. Variable can only return the total value. This should be override in subclass if we want the values for different levels.
Implements net_instaweb::TimedVariable.