source: nrEngine/include/GetTime.h @ 1

Revision 1, 1.6 KB checked in by art, 13 years ago (diff)
Line 
1/***************************************************************************
2 *                                                                         *
3 *   (c) Art Tevs, MPI Informatik Saarbruecken                             *
4 *       mailto: <tevs@mpi-sb.mpg.de>                                      *
5 *                                                                         *
6 *   This program is free software; you can redistribute it and/or modify  *
7 *   it under the terms of the GNU General Public License as published by  *
8 *   the Free Software Foundation; either version 2 of the License, or     *
9 *   (at your option) any later version.                                   *
10 *                                                                         *
11 ***************************************************************************/
12
13#ifndef __NR_GET_TIME_OF_DAY_H_
14#define __NR_GET_TIME_OF_DAY_H
15
16
17//----------------------------------------------------------------------------------
18// Includes
19//----------------------------------------------------------------------------------
20#include "Prerequisities.h"
21
22//namespace nrEngine{
23
24#if NR_PLATFORM == NR_PLATFORM_WIN32
25   #include <time.h>
26   #if !defined(_WINSOCK2API_) && !defined(_WINSOCKAPI_)
27       #ifndef NR_WIN32_TIMEVAL
28       #define NR_WIN32_TIMEVAL
29             /*struct timeval
30             {
31                long tv_sec;
32                long tv_usec;
33             };*/
34       #endif
35   #endif
36   _NRExport int gettimeofday(struct timeval* tv, void* placeholder);
37#else
38   #include <sys/time.h>
39#endif
40
41//}; // end namespace
42
43
44#endif
Note: See TracBrowser for help on using the repository browser.