+ explicit StateTimer (std::string n);
+ /** @param n Name to use when giving output.
+ * @param s Initial state.
+ */
+ StateTimer (std::string n, std::string s);
+ ~StateTimer ();
+
+ /** @param s New state that the caller is in */
+ void set (std::string s);
+ void unset ();
+
+ std::string name () const {
+ return _name;
+ }