Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::CWin32Timer Class Reference

Win32 Timer class. More...

`#include <KeosWin32Timer.h>`

Inheritance diagram for Keos::CWin32Timer:

List of all members.

## Public Member Functions

| CWin32Timer ()
| Default constructor.
| ~CWin32Timer ()
| Destructor.
virtual void | Reset ()
| Resets timer.
virtual unsigned long | GetMilliseconds ()
| Returns milliseconds since initialisation or last reset.
virtual unsigned long | GetMicroseconds ()
| Returns microseconds since initialisation or last reset.

## Private Attributes

LARGE_INTEGER | m_nStartTime
LARGE_INTEGER | m_nFrequency

## Detailed Description

Win32 Timer class.

Definition at line 33 of file KeosWin32Timer.h.

## Constructor & Destructor Documentation

Keos::CWin32Timer::CWin32Timer | ( |  | ) |

| Default constructor. Definition at line 31 of file KeosWin32Timer.cpp.

Keos::CWin32Timer::~CWin32Timer | ( |  | ) | `[inline]`

| Destructor. Definition at line 47 of file KeosWin32Timer.h.

## Member Function Documentation

unsigned long Keos::CWin32Timer::GetMicroseconds | ( |  | ) | `[virtual]`

| Returns microseconds since initialisation or last reset. Implements Keos::CTimer. Definition at line 60 of file KeosWin32Timer.cpp. References m_nFrequency, and m_nStartTime.

unsigned long Keos::CWin32Timer::GetMilliseconds | ( |  | ) | `[virtual]`

| Returns milliseconds since initialisation or last reset. Implements Keos::CTimer. Definition at line 44 of file KeosWin32Timer.cpp. References m_nFrequency, and m_nStartTime.

void Keos::CWin32Timer::Reset | ( |  | ) | `[virtual]`

| Resets timer. Implements Keos::CTimer. Definition at line 37 of file KeosWin32Timer.cpp. References m_nFrequency, and m_nStartTime.

## Member Data Documentation

LARGE_INTEGER Keos::CWin32Timer::m_nFrequency`[private]`

| Definition at line 37 of file KeosWin32Timer.h. Referenced by GetMicroseconds(), GetMilliseconds(), and Reset().

LARGE_INTEGER Keos::CWin32Timer::m_nStartTime`[private]`

| Definition at line 36 of file KeosWin32Timer.h. Referenced by GetMicroseconds(), GetMilliseconds(), and Reset().

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

- PlatformManagers/Win32/KeosWin32Timer.h
- PlatformManagers/Win32/KeosWin32Timer.cpp