Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: Zap::Timer Class Reference

# Zap::Timer Class Reference

`#include <timer.h>`

## Public Member Functions

| Timer (U32 period=0)
bool | update (U32 timeDelta)
U32 | getCurrent ()
F32 | getFraction ()
void | reset ()
void | reset (U32 newCounter, U32 newPeriod=0)

## Private Attributes

U32 | mPeriod
U32 | mCurrentCounter

## Constructor & Destructor Documentation

Zap::Timer::Timer | ( | U32 | period = `0` | ) | `[inline]`

## Member Function Documentation

bool Zap::Timer::update | ( | U32 | timeDelta | ) | `[inline]`

U32 Zap::Timer::getCurrent | ( |  | ) | `[inline]`

F32 Zap::Timer::getFraction | ( |  | ) | `[inline]`

void Zap::Timer::reset | ( |  | ) | `[inline]`

void Zap::Timer::reset | ( | U32 | newCounter,
|  | U32 | newPeriod = `0` |
| ) |  |  | `[inline]`

## Field Documentation

U32 Zap::Timer::mPeriod`[private]`

U32 Zap::Timer::mCurrentCounter`[private]`