SCM Repository
View of /benchmarks/include/teem-defs.h
Parent Directory
|
Revision Log
Revision 1586 -
(download)
(as text)
(annotate)
Mon Oct 31 10:55:08 2011 UTC (10 years, 8 months ago) by jhr
File size: 571 byte(s)
Mon Oct 31 10:55:08 2011 UTC (10 years, 8 months ago) by jhr
File size: 571 byte(s)
Moved timing code into include/teem-defs.h
/*! \file teem-defs.h * * \author John Reppy * * Some common utility definitions for the Teem versions of the benchmarks. */ /* * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu) * All rights reserved. */ #ifndef _TEEM_DEFS_H_ #define _TEEM_DEFS_H_ #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; } #define STATIC_INLINE static inline #endif /* !_TEEM_DEFS_H_ */
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |