#ifndef _OTB_TRISKELE_DEBUG_TPP #define _OTB_TRISKELE_DEBUG_TPP string ns2string (double delta) { using namespace boost::chrono; ostringstream oss; duration ns (delta); oss.fill ('0'); // typedef duration > days; // auto d = duration_cast(ns); // ns -= d; auto h = duration_cast (ns); ns -= h; auto m = duration_cast (ns); ns -= m; oss << setw (2) << h.count () << ":" << setw (2) << m.count () << ":" << setw (9) << fixed << setprecision (6) << ns.count (); return oss.str (); } #endif // _OTB_TRISKELE_DEBUG_TPP