#include <time.h>
#include "mmgcommon.h"
#include <windows.h>
Go to the source code of this file.
◆ BIG
◆ BIG1
◆ TIMEMAX
◆ mytime
◆ chrono()
void chrono |
( |
int |
cmode, |
|
|
mytime * |
ptt |
|
) |
| |
Function to measure time.
- Parameters
-
cmode | macro that allow to reset (RESET), start (ON) or stop (OFF) the chrono. |
*ptt | pointer toward mytime object that store the chronograph informations. |
◆ printim()
void printim |
( |
double |
elps, |
|
|
char * |
stim |
|
) |
| |
Print real time.
- Parameters
-
elps | elapsed time in seconds. |
stim | pointer toward string containg the elapsed time at .h.m.s format. |
◆ tminit()
void tminit |
( |
mytime * |
t, |
|
|
int |
maxtim |
|
) |
| |
Initialize mytime object.
- Parameters
-
*t | mytime object to store the chronograph infos. |
maxtim | integer sepcifying the maximum number of times stored. |