Class to make time measurement.
Macros:
Enumerations:
Enumeration for the units of the elapsed time
Typedefs:
None.
Struct CapyChrono :
Struct CapyChrono's properties:
Elapsed time divided into each unit component. For example 1.2s is [0,0,0,1,200]
Start and stop times
Struct CapyChrono's methods:
Destructor
Start the timer
Stop the timer
Get the elapsed time in a given unit between
Input argument(s):
unit: the unit of the returned value
Output and side effect(s):
Return the elapsed time between the last call to start() and the last call to stop()
Get the elapsed time in the most convenient unit
Input argument(s):
unit: a pointer to the choosen unit
Output and side effect(s):
Return the elapsed time between the last call to start() and the last call to stop() into the largest unit such as the returned time is greater than 1.0
Functions:
Create a CapyChrono
Output and side effect(s):
Return a CapyChrono
Allocate memory for a new CapyChrono and create it
Output and side effect(s):
Return a CapyChrono
Exception(s):
May raise CapyExc_MallocFailed.
Free the memory used by a CapyChrono* and reset '*that' to NULL
Input argument(s):
that: a pointer to the CapyChrono to free