Horizon
3rd_party
router
router
time_limit.h
1
/*
2
* KiRouter - a push-and-(sometimes-)shove PCB router
3
*
4
* Copyright (C) 2013-2014 CERN
5
* Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
6
* Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
7
*
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License as published by the
10
* Free Software Foundation, either version 3 of the License, or (at your
11
* option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License along
19
* with this program. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef __TIME_LIMIT_H
23
#define __TIME_LIMIT_H
24
25
#include <stdint.h>
26
27
namespace
PNS {
28
29
class
TIME_LIMIT
30
{
31
public
:
32
TIME_LIMIT
(
int
aMilliseconds = 0 );
33
~
TIME_LIMIT
();
34
35
bool
Expired()
const
;
36
void
Restart();
37
38
void
Set(
int
aMilliseconds );
39
int
Get()
const
{
return
m_limitMs; }
40
41
private
:
42
int
m_limitMs;
43
int64_t
m_startTics;
44
};
45
46
}
47
48
#endif
PNS::TIME_LIMIT
Definition:
time_limit.h:30
libzip::int64_t
zip_int64_t int64_t
zip_int64_t typedef.
Definition:
zip.hpp:103
Generated by
1.9.1