Page Speed Optimization Libraries
1.13.35.1
|
#include "countdown_timer.h"
Public Member Functions | |
CountdownTimer (Timer *timer, void *user_data, int64 allowed_time_ms) | |
void | Reset (int64 allowed_time_ms) |
bool | HaveTimeLeft () const |
void * | user_data () const |
int64 | TimeLeftMs () const |
int64 | TimeElapsedMs () const |
Once initialized with a non-negative interval 'allowed_time_ms' via the ctor or Reset(), repeated calls to HaveTimeLeft() will return true only until the interval has elapsed. If the interval is negative number, HaveTimeLeft() always returns true.