mmg3d
|
Simulation of a chronograph. More...
Functions | |
void | chrono (int cmode, mytime *ptt) |
Function to measure time. More... | |
void | tminit (mytime *t, int maxtim) |
Initialize mytime object. More... | |
void | printim (double elps, char *stim) |
Print real time. More... | |
Simulation of a chronograph.
Simulation of a chronograph. Allow parallel usage.
void chrono | ( | int | cmode, |
mytime * | ptt | ||
) |
Function to measure time.
cmode | macro that allow to reset (RESET), start (ON) or stop (OFF) the chrono. |
*ptt | pointer toward mytime object that store the chronograph informations. |
void printim | ( | double | elps, |
char * | stim | ||
) |
Print real time.
elps | elapsed time in seconds. |
stim | pointer toward string containg the elapsed time at .h.m.s format. |
void tminit | ( | mytime * | t, |
int | maxtim | ||
) |
Initialize mytime object.
*t | mytime object to store the chronograph infos. |
maxtim | integer sepcifying the maximum number of times stored. |