29 # include <cbs/bench/timer.hh>
33 # define NAMESPACE_VCSN_BEGIN namespace vcsn {
34 # define NAMESPACE_VCSN_END } // namespace vcsn
37 # define NAMESPACE_VCSN_BEGIN
38 # define NAMESPACE_VCSN_END
40 # define precondition(C) assert(C)
51 void push (
const timer::Timer& t);
54 std::ostream& print (std::ostream& o)
const;
56 void plot (std::ostream& o)
const;
59 timer::Timer sum()
const;
62 timer::Timer mean()
const;
65 timer::Timer min()
const;
68 timer::Timer max()
const;
72 timer::Timer prepare (timer::Timer t)
const;
75 std::vector<timer::Timer> timers_;
80 std::ostream& operator<< (std::ostream& o,
const Bencher& t);
85 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
86 # include <vaucanson/misc/bencher.hxx>
88 # include <vaucanson/misc/bencher.cc>
90 # endif // VCSN_USE_INTERFACE_ONLY