Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /benchmarks/include/teem-defs.h
ViewVC logotype

Diff of /benchmarks/include/teem-defs.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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_ */

Legend:
Removed from v.1600  
changed lines
  Added in v.1601

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0