|
Page Speed Optimization Libraries
1.13.35.1
|
#include "statistics.h"
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. | |
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.
|
pure virtual |
Get the amount added over the last time interval specified by "level".
Implemented in net_instaweb::FakeTimedVariable, and net_instaweb::SplitTimedVariable.
1.8.6