]> git.lyx.org Git - lyx.git/blobdiff - src/support/Timeout.h
Add quote style information to languages
[lyx.git] / src / support / Timeout.h
index 28b00333be1e09c09000cc2f3d668ed1674afa70..de3062ae73a9794b6ec701d83e5efea4044061f4 100644 (file)
@@ -64,6 +64,27 @@ private:
        unsigned int timeout_ms;
 };
 
+// Small Timer class useful for debugging and performance investigation.
+class Timer
+{
+public:
+       Timer();
+       ///
+       void restart();
+       ///
+       int elapsed() const;
+       ///
+       std::string dateStr(char separator = 0) const;
+       ///
+       std::string timeStr(char separator = 0) const;
+       ///
+       std::string toStr() const;
+       ///
+       static std::string currentToStr();
+private:
+       struct Private;
+       Private * d;
+};
 
 } // namespace lyx