Changeset 1239


Ignore:
Timestamp:
Oct 2, 2009 4:29:55 AM (11 years ago)
Author:
stefan
Message:

on windows/cl use CoinGetTimeOfDay? instead of gettimeofday

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcModel.cpp

    r1237 r1239  
    8484}
    8585#else
     86#ifndef _MSC_VER
    8687inline int my_gettime(struct timespec* tp) {
    8788        struct timeval tv;
     
    9192        return ret;
    9293}
     94#else
     95inline int my_gettime(struct timespec* tp) {
     96        double t = CoinGetTimeOfDay();
     97        tp->tv_sec = (int)floor(t);
     98        tp->tv_nsec = (int)((tp->tv_sec - floor(t))/1000000.0);
     99        return 0;
     100}
     101#endif
    93102#endif
    94103
Note: See TracChangeset for help on using the changeset viewer.