deprecate the ptime type and related time types. just use boost::chrono / std::chrono
This commit is contained in:
@@ -37,6 +37,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "libtorrent/io_service.hpp"
|
||||
#include "libtorrent/error_code.hpp"
|
||||
#include "libtorrent/socket.hpp"
|
||||
#include "libtorrent/aux_/time.hpp"
|
||||
#include "dht_server.hpp"
|
||||
|
||||
#include <boost/detail/atomic_count.hpp>
|
||||
@@ -85,7 +86,7 @@ struct dht_server
|
||||
return;
|
||||
}
|
||||
|
||||
fprintf(stderr, "%s: DHT initialized on port %d\n", time_now_string(), m_port);
|
||||
fprintf(stderr, "%s: DHT initialized on port %d\n", aux::time_now_string(), m_port);
|
||||
|
||||
m_thread.reset(new thread(boost::bind(&dht_server::thread_fun, this)));
|
||||
}
|
||||
@@ -170,8 +171,8 @@ int num_dht_hits()
|
||||
|
||||
void stop_dht()
|
||||
{
|
||||
fprintf(stderr, "%s: stop_dht()\n", time_now_string());
|
||||
fprintf(stderr, "%s: stop_dht()\n", aux::time_now_string());
|
||||
g_dht.reset();
|
||||
fprintf(stderr, "%s: stop_dht() done\n", time_now_string());
|
||||
fprintf(stderr, "%s: stop_dht() done\n", aux::time_now_string());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user