Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Phx::FrameClock Class Reference

A clock whose reference time is the current simulation frame count. More...

#include <PhxClock.h>

Inheritance diagram for Phx::FrameClock:

Phx::Clock Phx::NamedInterface Phx::LockedPtrInterface< NamedInterface > List of all members.

Static Public Attributes

static const NamedInterface::Type INTERFACE_TYPE
static const String INTERFACE_TYPE_NAME

Detailed Description

A clock whose reference time is the current simulation frame count.

When rate() == 1, this clock reports the number of elapsed frames, but also allows you to set fractional times or rates. E.g., calling time(0.5) will result in the subsequent reported times being 0.5, 1.5, 2.5, etc. Setting rate then to 2.0 would further change this to 0.5, 2.5, 4.5, ... It's not clear that this is useful to do, but in any event this clock still faithfully implements the Clock interface.


The documentation for this class was generated from the following file:
Generated on Wed Dec 21 22:05:38 2005 for Phoenix OSFS by  doxygen 1.4.2