Version: 8.3.0
chrono.hxx File Reference
#include "YACSBasesExport.hxx"
#include <vector>
#include <string>
#include <iostream>
#include <ctime>
#include <sys/time.h>
Include dependency graph for chrono.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  acnt
 
class  counters
 
class  salome_chrono
 

Macros

#define START_TIMING   gettimeofday(&tv,0);long tt0=tv.tv_usec+tv.tv_sec*1000000;
 
#define END_TIMING(NUMBER)
 
#define CHRONO(i)
 
#define CHRONOSTOP(i)
 

Typedefs

typedef struct acnt cntStruct
 

Variables

static long tcount =0
 
static long cumul
 
static timeval tv
 

Macro Definition Documentation

#define CHRONO (   i)
#define CHRONOSTOP (   i)
#define END_TIMING (   NUMBER)
Value:
tcount=tcount+1;gettimeofday(&tv,0);cumul=cumul+tv.tv_usec+tv.tv_sec*1000000 -tt0; \
if(tcount==NUMBER){ std::cerr << __FILE__<<":"<<__LINE__<<" temps CPU(mus): "<<cumul<< std::endl; tcount=0 ;cumul=0; }

Definition at line 74 of file chrono.hxx.

#define START_TIMING   gettimeofday(&tv,0);long tt0=tv.tv_usec+tv.tv_sec*1000000;

Definition at line 73 of file chrono.hxx.

Typedef Documentation

typedef struct acnt cntStruct

Variable Documentation

long cumul
static

Definition at line 67 of file chrono.hxx.

long tcount =0
static

Definition at line 66 of file chrono.hxx.

timeval tv
static

Definition at line 71 of file chrono.hxx.