Commit 220a4c7f authored by ferhat's avatar ferhat
Browse files

- deletes useless files (pctimer_h.hh simulate.c and simulate.cc => needs for...

- deletes useless files (pctimer_h.hh simulate.c and simulate.cc => needs for the no more supported options "compile")

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2852 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 1d926025
/*
* pctimer.h 1.1 02/03/05
*
* Uses Win32 performance counter functions to get a high-resolution timer
*
* By Wu Yongwei
*
*/
#ifndef _PCTIMER_H
typedef double pctimer_t;
#if defined(_WIN32) || defined(__CYGWIN__)
#ifndef _WIN32
#define PCTIMER_NO_WIN32
#endif /* _WIN32 */
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef PCTIMER_NO_WIN32
#undef PCTIMER_NO_WIN32
#undef _WIN32
#endif /* PCTIMER_NO_WIN32 */
__inline pctimer_t pctimer()
{
static LARGE_INTEGER pcount, pcfreq;
static int initflag;
if (!initflag)
{
QueryPerformanceFrequency(&pcfreq);
initflag++;
}
QueryPerformanceCounter(&pcount);
return (double)pcount.QuadPart / (double)pcfreq.QuadPart;
}
#else /* Win32/Cygwin */
#include <sys/time.h>
__inline pctimer_t pctimer()
{
struct timeval tv;
gettimeofday(&tv, NULL);
return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
}
#endif /* Win32/Cygwin */
#endif /* _PCTIMER_H */
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment