In file mydocsrc/mvl_mclk.h:

class mvl_clock : public iml_clock

This class allows simple access to the MAC-OS provided microsecond resolution timer

Inheritance:

mvl_clock < iml_clock


Public Methods

IML_ULINT seed (void)
This returns a seed from the low 32 bits of the microsecond timer so you can use it as a seed for your favorite (or is that favourite?) random number generator
void start (void)
Start the timer
IML_FLOAT time (void)
Get the amount of time (in seconds) that has passed since the last start() call
void wait (IML_FLOAT WaitTime)
Use this call if you just want to pause your program for a specified amount of time (in seconds)

Inherited from iml_clock:


Documentation

This class allows simple access to the MAC-OS provided microsecond resolution timer. Only a minimal and, I hope, useful set of functions are provided.
void start(void)
Start the timer. This really resets the time to zero because the actual timer is running continuously. Use this in conjunction with time().

IML_FLOAT time(void)
Get the amount of time (in seconds) that has passed since the last start() call. Use this in conjunction with start().


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++