author | kpeter |
Mon, 01 Jun 2009 15:35:27 +0000 | |
changeset 2635 | 23570e368afa |
parent 2391 | 14a343be7a5a |
permissions | -rw-r--r-- |
deba@2028 | 1 |
/* -*- C++ -*- |
deba@2028 | 2 |
* |
deba@2028 | 3 |
* This file is a part of LEMON, a generic C++ optimization library |
deba@2028 | 4 |
* |
alpar@2553 | 5 |
* Copyright (C) 2003-2008 |
deba@2028 | 6 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
deba@2028 | 7 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
deba@2028 | 8 |
* |
deba@2028 | 9 |
* Permission to use, modify and distribute this software is granted |
deba@2028 | 10 |
* provided that this copyright notice appears in all copies. For |
deba@2028 | 11 |
* precise terms see the accompanying LICENSE file. |
deba@2028 | 12 |
* |
deba@2028 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
deba@2028 | 14 |
* express or implied, and with no claim as to its suitability for any |
deba@2028 | 15 |
* purpose. |
deba@2028 | 16 |
* |
deba@2028 | 17 |
*/ |
deba@2028 | 18 |
|
deba@2028 | 19 |
#ifndef LEMON_BITS_MINGW32_TIME_H |
deba@2028 | 20 |
#define LEMON_BITS_MINGW32_TIME_H |
deba@2028 | 21 |
|
deba@2028 | 22 |
#ifdef WIN32 |
deba@2028 | 23 |
|
deba@2028 | 24 |
#include <windows.h> |
deba@2035 | 25 |
#include <ctime> |
deba@2028 | 26 |
#include "dos.h" |
deba@2028 | 27 |
|
deba@2035 | 28 |
char *asctime_r(const struct tm *t, char *buf); |
deba@2035 | 29 |
struct tm * localtime_r (const time_t *t, struct tm *tm); |
deba@2035 | 30 |
char *ctime_r(const time_t * tim_p , char * result); |
deba@2035 | 31 |
int gettimeofday(struct timeval * tp, struct timezone *); |
deba@2028 | 32 |
|
deba@2028 | 33 |
struct tms { |
deba@2028 | 34 |
long tms_utime; |
deba@2028 | 35 |
long tms_stime; |
deba@2028 | 36 |
long tms_cutime; |
deba@2028 | 37 |
long tms_cstime; |
deba@2028 | 38 |
}; |
deba@2028 | 39 |
|
deba@2035 | 40 |
long filetime_to_clock(FILETIME *ft); |
deba@2028 | 41 |
|
deba@2035 | 42 |
int times(struct tms *tmbuf); |
deba@2028 | 43 |
|
deba@2028 | 44 |
#define _SC_CLK_TCK 1 |
deba@2028 | 45 |
|
deba@2035 | 46 |
int sysconf(int); |
deba@2028 | 47 |
|
deba@2028 | 48 |
#endif |
deba@2028 | 49 |
|
deba@2028 | 50 |
#endif |