LibCapy - chrono

Class to make time measurement.

Macros:

Enumerations:

Enumeration for the units of the elapsed time

Typedefs:

Type for the time values of a CapyChrono

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

Get the current date and time in format yyyymmddhhiiss

Input argument(s):

buffer: buffer updated with the result

Output and side effect(s):

buffer is updated.

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

2022-06-07
in LibCapy,
27 views
Copyright 2021-2024 Baillehache Pascal