Changeset 528


Ignore:
Timestamp:
Sep 28, 2005 11:56:14 PM (15 years ago)
Author:
andreasw
Message:

made timing work for Cygwin/Mingw?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/Algorithm/IpTimingStatistics.hpp

    r526 r528  
    3030#else
    3131// MacOS-X and FreeBSD needs sys/time.h
    32 #if defined(__MACH__) || defined (__FreeBSD__)
    33 #include <sys/time.h>
    34 #endif
    35 #include <sys/resource.h>
     32# if defined(__MACH__) || defined (__FreeBSD__)
     33#  include <sys/time.h>
     34# endif
     35# if !defined(__MSVCRT__)
     36#  include <sys/resource.h>
     37# endif
    3638#endif
    3739
     
    130132    {
    131133      double cpu_temp;
    132 #if defined(_MSC_VER)
     134#if defined(_MSC_VER) || defined(__MSVCRT__)
    133135
    134136      unsigned int ticksnow;        /* clock_t is same as int */
Note: See TracChangeset for help on using the changeset viewer.