author | Alpar Juttner <alpar@cs.elte.hu> |
Thu, 08 Oct 2015 10:03:29 +0200 | |
branch | 1.3 |
changeset 1155 | a7d841273c68 |
parent 1092 | dceba191c00d |
permissions | -rw-r--r-- |
alpar@482 | 1 |
/* -*- mode: C++; indent-tabs-mode: nil; -*- |
alpar@482 | 2 |
* |
alpar@482 | 3 |
* This file is a part of LEMON, a generic C++ optimization library. |
alpar@482 | 4 |
* |
alpar@1092 | 5 |
* Copyright (C) 2003-2013 |
alpar@482 | 6 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
alpar@482 | 7 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
alpar@482 | 8 |
* |
alpar@482 | 9 |
* Permission to use, modify and distribute this software is granted |
alpar@482 | 10 |
* provided that this copyright notice appears in all copies. For |
alpar@482 | 11 |
* precise terms see the accompanying LICENSE file. |
alpar@482 | 12 |
* |
alpar@482 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
alpar@482 | 14 |
* express or implied, and with no claim as to its suitability for any |
alpar@482 | 15 |
* purpose. |
alpar@482 | 16 |
* |
alpar@482 | 17 |
*/ |
alpar@482 | 18 |
|
deba@529 | 19 |
#ifndef LEMON_BITS_WINDOWS_H |
deba@529 | 20 |
#define LEMON_BITS_WINDOWS_H |
alpar@482 | 21 |
|
alpar@1143 | 22 |
#include <lemon/config.h> |
alpar@482 | 23 |
#include <string> |
alpar@482 | 24 |
|
alpar@482 | 25 |
namespace lemon { |
alpar@482 | 26 |
namespace bits { |
alpar@482 | 27 |
void getWinProcTimes(double &rtime, |
alpar@482 | 28 |
double &utime, double &stime, |
alpar@482 | 29 |
double &cutime, double &cstime); |
alpar@482 | 30 |
std::string getWinFormattedDate(); |
alpar@482 | 31 |
int getWinRndSeed(); |
deba@979 | 32 |
|
deba@979 | 33 |
class WinLock { |
deba@979 | 34 |
public: |
deba@979 | 35 |
WinLock(); |
deba@979 | 36 |
~WinLock(); |
deba@979 | 37 |
void lock(); |
alpar@1143 | 38 |
void unlock();\ |
deba@979 | 39 |
private: |
deba@979 | 40 |
void *_repr; |
deba@979 | 41 |
}; |
alpar@482 | 42 |
} |
alpar@482 | 43 |
} |
alpar@482 | 44 |
|
alpar@482 | 45 |
#endif |