asio 0.1.5 Main Page | Class Index | Member Index | Tutorial

timer_base Class Reference

The timer_base class is used as a base for the basic_timer class template so that we have a common place to define the from_type enum. More...

Inheritance diagram for timer_base:

Inheritance graph
List of all members.

Public Types

enum  from_type {
  from_now,
  from_existing,
  from_epoch
}
 The point from where relative times are measured. More...


Protected Member Functions

 ~timer_base ()
 Protected destructor to prevent deletion through this type.


Detailed Description

The timer_base class is used as a base for the basic_timer class template so that we have a common place to define the from_type enum.


Member Enumeration Documentation

enum from_type
 

The point from where relative times are measured.

Enumeration values:
from_now  The specified time is relative to the current time.
from_existing  The specified time is relative to the timer's existing expiry value.
from_epoch  The specified time is a "C" time, i.e. it is measured from midnight, January 1, 1970.


Constructor & Destructor Documentation

~timer_base  )  [protected]
 

Protected destructor to prevent deletion through this type.