llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
tools
llir-reducer
timeout.h
1
// This file if part of the llir-opt project.
2
// Licensing information can be found in the LICENSE file.
3
// (C) 2018 Nandor Licker. All rights reserved.
4
5
#pragma once
6
7
#include <chrono>
8
9
10
14
class
Timeout
{
15
public
:
17
Timeout
(
unsigned
seconds);
18
20
operator
bool ()
const
;
21
22
private
:
24
unsigned
seconds_;
26
std::chrono::system_clock::time_point end_;
27
};
Timeout::Timeout
Timeout(unsigned seconds)
Initialise the timeout to now + seconds.
Definition:
timeout.cpp:10
Timeout
Definition:
timeout.h:14
Generated by
1.8.17