Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
chrono.c File Reference

Simulation of a chronograph. More...

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "chrono_private.h"
Include dependency graph for chrono.c:

Go to the source code of this file.

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

Detailed Description

Simulation of a chronograph.

Author
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Version
5
Date
08 2010

Simulation of a chronograph. Allow parallel usage.

Definition in file chrono.c.

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.

Definition at line 49 of file chrono.c.

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.

Definition at line 160 of file chrono.c.

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.

Definition at line 120 of file chrono.c.

Here is the caller graph for this function: