#ifndef TIME_MES_HPP #define TIME_MES_HPP #include <sys/time.h> // renvoit l'heure en secondes (pécision : micro seconde) double get_time() { struct timeval tv; gettimeofday(&tv,0); return static_cast<double>(tv.tv_sec+tv.tv_usec*1e-6); } #endif