Fixed #820 (Borland C++: Compiler errors because of time_t)

This commit is contained in:
Daniel Marjamäki 2009-10-14 19:17:20 +02:00
parent be90d34962
commit dd20f26c83
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@
#define TIMER_END(str) if(_settings._showtime){clock_t c2 = clock(); std::cout << str << ": " << ((c2 - c1) / 1000) << std::endl;}
#else
#include <ctime>
#define TIMER_START() time_t t1; time(&t1);
#define TIMER_END(str) if(_settings._showtime){time_t t2; time(&t2); std::cout << str << ": " << (t2 - t1) << std::endl;}
#define TIMER_START() std::time_t t1; std::time(&t1);
#define TIMER_END(str) if(_settings._showtime){std::time_t t2; std::time(&t2); std::cout << str << ": " << (t2 - t1) << std::endl;}
#endif
//---------------------------------------------------------------------------