#include "SALOME_Basics.hxx"
#include <string>
#include <iostream>
#include <sys/time.h>
#include <sstream>
#include <stdlib.h>
Go to the source code of this file.
#define END_TIMING |
( |
|
name, |
|
|
|
NUMBER |
|
) |
| |
Value:name##tcount=name##tcount+1;gettimeofday(&name##tv,0); \
name##cumul=name##cumul+name##tv.tv_usec+name##tv.tv_sec*1000000 -name##tt0; \
if(name##tcount==NUMBER){ \
std::cerr <<__FILE__<<":"<<__LINE__<<":"<<#name<<" temps CPU(mus): "<< name##cumul<<std::endl; \
name##tcount=0;name##cumul=0;}
#define START_TIMING |
( |
|
name | ) |
|
Value:static long name##tcount=0;static long name##cumul;long name##tt0; timeval name##tv; gettimeofday(&name##tv,0); \
name##tt0=name##tv.tv_usec+name##tv.tv_sec*1000000; \
if(name##tcount==0)std::cerr<<__FILE__<<":"<<__LINE__<<":"<<#name<<std::endl;
template<class T >
double ToDouble |
( |
const T & |
arg | ) |
|
template<class T >
std::string ToString |
( |
const T & |
arg | ) |
|