Added std/time.hpp for os-dependent time function calls

This commit is contained in:
Alex Zolotarev 2011-06-12 19:18:14 +03:00 committed by Alex Zolotarev
parent e130439f75
commit 1fcc68da97

19
std/time.hpp Normal file
View file

@ -0,0 +1,19 @@
#pragma once
#include "common_defines.hpp"
#include "target_os.hpp"
#ifdef new
#undef new
#endif
// for gettimeofday and GetSystemTimeAsFileTime
#ifdef OMIM_OS_WINDOWS
#include "windows.hpp"
#else
#include <sys/time.h>
#endif
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif