Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

Timer.h

Go to the documentation of this file.
00001 #ifndef SCT_TIMER_H
00002 #define SCT_TIMER_H
00003 
00004 #include <sys/time.h>
00005 
00006 namespace Sct {
00007  
00013     inline double timer() {
00014     timeval tv;
00015     gettimeofday(&tv, 0);
00016     return tv.tv_sec%1000 + tv.tv_usec/1000000.;
00017     }
00018     
00019 }
00020 
00021 #endif //SCT_TIMER_H

Generated on Mon Dec 15 19:36:21 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3