Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
tests
CMakeLists.txt
README.md
chrono.h

README.md

Chrono Class

Minimal class to measure code performance. This is the public interface of the class:

class Chrono {
public:
  Chrono();
  void reset();
  double elapsed() const;
};

Example

{
  Chrono t;
  {
     // Do something...
  }
  std::cout << "Elapsed seconds: " << t.elapsed() << "\n";
}