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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1586 - (view) (download) (as text)

1 : jhr 1586 /*! \file teem-defs.h
2 :     *
3 :     * \author John Reppy
4 :     *
5 :     * Some common utility definitions for the Teem versions of the benchmarks.
6 :     */
7 :    
8 :     /*
9 :     * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
10 :     * All rights reserved.
11 :     */
12 :    
13 :     #ifndef _TEEM_DEFS_H_
14 :     #define _TEEM_DEFS_H_
15 :    
16 :     #include <sys/time.h>
17 :    
18 :     //! \brief return the current time in seconds.
19 :     static double GetTime ()
20 :     {
21 :     struct timeval tv;
22 :    
23 :     gettimeofday (&tv, 0);
24 :    
25 :     return (double)tv.tv_sec + 0.000001 * (double)tv.tv_usec;
26 :     }
27 :    
28 :     #define STATIC_INLINE static inline
29 :    
30 :     #endif /* !_TEEM_DEFS_H_ */

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