29 #if !defined(FEELPP_TIMING_TIC_HPP)
30 #define FEELPP_TIMING_TIC_HPP 1
39 struct SecondBasedTimer
41 static void print( std::string
const& msg,
const double&
val )
44 std::cout <<
"[" << msg <<
"] Time : " << val <<
"s\n";
46 std::cout <<
"Time : " << val <<
"s\n";
48 static inline double time()
50 return Feel::details::now();
54 counter<double,SecondBasedTimer>
const sec_timer = {};
64 Feel::details::sec_timer.tic();
67 inline double toc( std::string
const& msg =
"",
bool display =
true )
69 return Feel::details::sec_timer.toc( msg, display );
Expr< Val< typename mpl::if_< boost::is_arithmetic< ExprT1 >, mpl::identity< Cst< ExprT1 > >, mpl::identity< ExprT1 > >::type::type > > val(ExprT1 const &__e1)
precompute expression tensor
Definition: val.hpp:304