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

#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
 

Detailed Description

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.


The documentation for this class was generated from the following file: