MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Timer Class Reference

A timer class that can't be fooled by NTP:ing the system clock to old time. More...

#include <timer.hpp>

Public Member Functions

 Timer (NDB_TICKS delay_time)
void setDelay (NDB_TICKS delay_time)
NDB_TICKS getDelay () const
void reset (NDB_TICKS now)
bool check (NDB_TICKS now)

Detailed Description

A timer class that can't be fooled by NTP:ing the system clock to old time.

Definition at line 23 of file timer.hpp.

Member Function Documentation

bool Timer::check ( NDB_TICKS  now)
inline

Standard alarm check

Time progressing, but it is not alarm time yet

Time has moved backwards

Definition at line 47 of file timer.hpp.

Here is the call graph for this function:

void Timer::reset ( NDB_TICKS  now)
inline

Start timer

Definition at line 42 of file timer.hpp.

Here is the caller graph for this function:

void Timer::setDelay ( NDB_TICKS  delay_time)
inline

Set/Get alarm time of timer

Definition at line 36 of file timer.hpp.


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