Commit b535547e authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

mln/util/timer.hh: Add support for milliseconds output.

parent 898100c1
2011-08-05 Guillaume Lazzara <z@lrde.epita.fr>
* mln/util/timer.hh: Add support for milliseconds output.
2011-06-28 Guillaume Lazzara <z@lrde.epita.fr>
 
* mln/morpho/skeleton_constrained.hh: Add a missing include.
// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2008, 2009, 2011 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -79,6 +80,11 @@ namespace mln
// << time_ << std::endl;
// }
double ms() const
{
return double(std::clock()) * 1000.f / CLOCKS_PER_SEC;
}
private:
bool running_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment