SCM Repository
Diff of /benchmarks/include/teem-defs.h
Parent Directory
|
Revision Log
|
Patch
revision 1600, Thu Nov 3 05:00:16 2011 UTC | revision 1601, Thu Nov 3 05:00:53 2011 UTC | |
---|---|---|
# | Line 13 | Line 13 |
13 | #ifndef _TEEM_DEFS_H_ | #ifndef _TEEM_DEFS_H_ |
14 | #define _TEEM_DEFS_H_ | #define _TEEM_DEFS_H_ |
15 | ||
#include <sys/time.h> | ||
//! \brief return the current time in seconds. | ||
static double GetTime () | ||
{ | ||
struct timeval tv; | ||
gettimeofday (&tv, 0); | ||
return (double)tv.tv_sec + 0.000001 * (double)tv.tv_usec; | ||
} | ||
16 | #define STATIC_INLINE static inline | #define STATIC_INLINE static inline |
17 | ||
18 | #endif /* !_TEEM_DEFS_H_ */ | #endif /* !_TEEM_DEFS_H_ */ |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |