]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // |
2 | // timer.cpp | |
3 | // ~~~~~~~~~ | |
4 | // | |
1e59de90 | 5 | // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) |
7c673cae FG |
6 | // |
7 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
8 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
9 | // | |
10 | ||
11 | #include <iostream> | |
12 | #include <boost/asio.hpp> | |
7c673cae FG |
13 | |
14 | int main() | |
15 | { | |
b32b8144 | 16 | boost::asio::io_context io; |
7c673cae | 17 | |
11fdf7f2 | 18 | boost::asio::steady_timer t(io, boost::asio::chrono::seconds(5)); |
7c673cae FG |
19 | t.wait(); |
20 | ||
21 | std::cout << "Hello, world!" << std::endl; | |
22 | ||
23 | return 0; | |
24 | } |