deba@2028: /* -*- C++ -*- deba@2028: * deba@2028: * This file is a part of LEMON, a generic C++ optimization library deba@2028: * alpar@2391: * Copyright (C) 2003-2007 deba@2028: * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport deba@2028: * (Egervary Research Group on Combinatorial Optimization, EGRES). deba@2028: * deba@2028: * Permission to use, modify and distribute this software is granted deba@2028: * provided that this copyright notice appears in all copies. For deba@2028: * precise terms see the accompanying LICENSE file. deba@2028: * deba@2028: * This software is provided "AS IS" with no warranty of any kind, deba@2028: * express or implied, and with no claim as to its suitability for any deba@2028: * purpose. deba@2028: * deba@2028: */ deba@2028: deba@2028: #ifndef LEMON_BITS_MINGW32_TIME_H deba@2028: #define LEMON_BITS_MINGW32_TIME_H deba@2028: deba@2028: #ifdef WIN32 deba@2028: deba@2028: #include deba@2035: #include deba@2028: #include "dos.h" deba@2028: deba@2035: char *asctime_r(const struct tm *t, char *buf); deba@2035: struct tm * localtime_r (const time_t *t, struct tm *tm); deba@2035: char *ctime_r(const time_t * tim_p , char * result); deba@2035: int gettimeofday(struct timeval * tp, struct timezone *); deba@2028: deba@2028: struct tms { deba@2028: long tms_utime; deba@2028: long tms_stime; deba@2028: long tms_cutime; deba@2028: long tms_cstime; deba@2028: }; deba@2028: deba@2035: long filetime_to_clock(FILETIME *ft); deba@2028: deba@2035: int times(struct tms *tmbuf); deba@2028: deba@2028: #define _SC_CLK_TCK 1 deba@2028: deba@2035: int sysconf(int); deba@2028: deba@2028: #endif deba@2028: deba@2028: #endif