mmg3d
chrono.h File Reference
#include <time.h>
#include "mmgcommon.h"
#include <sys/time.h>
#include <sys/resource.h>
Include dependency graph for chrono.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mytime
 Chrono object. More...
 

Macros

#define BIG   1e6
 
#define BIG1   1e-6
 
#define TIMEMAX   12
 

Typedefs

typedef struct mytime mytime
 

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, char *)
 Print real time. More...
 

Macro Definition Documentation

◆ BIG

#define BIG   1e6

◆ BIG1

#define BIG1   1e-6

◆ TIMEMAX

#define TIMEMAX   12

Typedef Documentation

◆ mytime

typedef struct mytime mytime

Function Documentation

◆ chrono()

void chrono ( int  cmode,
mytime ptt 
)

Function to measure time.

Parameters
cmodemacro that allow to reset (RESET), start (ON) or stop (OFF) the chrono.
*pttpointer toward mytime object that store the chronograph informations.
Here is the caller graph for this function:

◆ printim()

void printim ( double  elps,
char *  stim 
)

Print real time.

Parameters
elpselapsed time in seconds.
stimpointer toward string containg the elapsed time at .h.m.s format.
Here is the caller graph for this function:

◆ tminit()

void tminit ( mytime t,
int  maxtim 
)

Initialize mytime object.

Parameters
*tmytime object to store the chronograph infos.
maxtiminteger sepcifying the maximum number of times stored.
Here is the caller graph for this function: