GetTime.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   (c) Art Tevs, MPI Informatik Saarbruecken                             *
00004  *       mailto: <tevs@mpi-sb.mpg.de>                                      *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  *                                                                         *
00011  ***************************************************************************/
00012 
00013 #ifndef __NR_GET_TIME_OF_DAY_H_
00014 #define __NR_GET_TIME_OF_DAY_H
00015 
00016 
00017 //----------------------------------------------------------------------------------
00018 // Includes
00019 //----------------------------------------------------------------------------------
00020 #include "Prerequisities.h"
00021 
00022 //namespace nrEngine{
00023 
00024 #if NR_PLATFORM == NR_PLATFORM_WIN32
00025    #include <time.h>
00026    #if !defined(_WINSOCK2API_) && !defined(_WINSOCKAPI_)
00027        #ifndef NR_WIN32_TIMEVAL
00028        #define NR_WIN32_TIMEVAL
00029              /*struct timeval
00030              {
00031                 long tv_sec;
00032                 long tv_usec;
00033              };*/
00034        #endif
00035    #endif 
00036    _NRExport int gettimeofday(struct timeval* tv, void* placeholder);
00037 #else
00038    #include <sys/time.h>
00039 #endif 
00040 
00041 //}; // end namespace
00042 
00043 
00044 #endif

Generated on Wed Sep 12 23:19:42 2007 for nrEngine by  doxygen 1.5.1