Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Data Structures | Macros | Typedefs | Functions
chrono_private.h File Reference
#include <time.h>
#include "mmgcommon_private.h"
#include <windows.h>
#include "mmg_core_export_private.h"
Include dependency graph for chrono_private.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

LIBMMG_CORE_EXPORT void chrono (int cmode, mytime *ptt)
 Function to measure time. More...
 
LIBMMG_CORE_EXPORT void tminit (mytime *t, int maxtim)
 Initialize mytime object. More...
 
LIBMMG_CORE_EXPORT void printim (double, char *)
 Print real time. More...
 

Macro Definition Documentation

◆ BIG

#define BIG   1e6

Definition at line 49 of file chrono_private.h.

◆ BIG1

#define BIG1   1e-6

Definition at line 50 of file chrono_private.h.

◆ TIMEMAX

#define TIMEMAX   12

Definition at line 51 of file chrono_private.h.

Typedef Documentation

◆ mytime

typedef struct mytime mytime

Function Documentation

◆ chrono()

LIBMMG_CORE_EXPORT 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.

Definition at line 49 of file chrono.c.

Here is the caller graph for this function:

◆ printim()

LIBMMG_CORE_EXPORT 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.

Definition at line 160 of file chrono.c.

Here is the caller graph for this function:

◆ tminit()

LIBMMG_CORE_EXPORT 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.

Definition at line 120 of file chrono.c.

Here is the caller graph for this function: