Skip to content
Snippets Groups Projects
Commit 8cce5cd6 authored by Simon Désaulniers's avatar Simon Désaulniers Committed by Adrien Béraud
Browse files

removed commented duplicate utility function

parent 820598c1
Branches
Tags
No related merge requests found
......@@ -68,6 +68,9 @@ using duration = clock::duration;
time_point from_time_t(std::time_t t);
std::time_t to_time_t(time_point t);
/**
* Converts std::chrono::duration to floating-point seconds.
*/
template <class DT>
static double
print_dt(DT d) {
......
......@@ -112,15 +112,6 @@ disableLogging(dht::DhtRunner& dht)
dht.setLoggers(dht::NOLOG, dht::NOLOG, dht::NOLOG);
}
/**
* Converts std::chrono::duration to floating-point seconds.
*/
/*template <class DT>
static double
print_dt(DT d) {
return std::chrono::duration_cast<std::chrono::duration<double>>(d).count();
}*/
/**
* Split "[host]:port" or "host:port" to pair<"host", "port">.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment