]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/asio/example/cpp03/tutorial/timer2/timer.cpp
5 // Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
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)
12 #include <boost/asio.hpp>
13 #include <boost/date_time/posix_time/posix_time.hpp>
15 void print(const boost::system::error_code
& /*e*/)
17 std::cout
<< "Hello, world!" << std::endl
;
22 boost::asio::io_context io
;
24 boost::asio::deadline_timer
t(io
, boost::posix_time::seconds(5));