2
0
mirror of https://github.com/boostorg/convert.git synced 2026-02-01 08:22:18 +00:00

sorting out headers and dependencies

This commit is contained in:
Vladimir Batov
2014-06-22 09:50:59 +10:00
parent 00d3a43451
commit 2be958316d
30 changed files with 143 additions and 66 deletions

15
test/timer.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "./test.hpp"
#include "./timer.hpp"
#include <boost/detail/lightweight_test.hpp>
double
test::cnv::timer::value() const
{
struct tms tms_end;
double const end = times(&tms_end);
int const use_sum = (sum_ % 2) ? 0 : (sum_ % 2); BOOST_TEST(use_sum == 0);
double use_beg = tms_beg_.tms_utime + tms_beg_.tms_stime;
double use_end = tms_end .tms_utime + tms_end .tms_stime;
return (use_end - use_beg) / sysconf(_SC_CLK_TCK) + use_sum;
}