--- /dev/null
+#ifndef CHRONOS_H\r
+#define CHRONOS_H\r
+\r
+#include <string>\r
+\r
+using std::string;\r
+using std::ostream;\r
+\r
+class Chronos\r
+ {\r
+ public:\r
+\r
+ /*--------------------------------------*\\r
+ |* Constructor *|\r
+ \*-------------------------------------*/\r
+\r
+ Chronos();\r
+\r
+ /*--------------------------------------*\\r
+ |* Destructor *|\r
+ \*-------------------------------------*/\r
+\r
+ virtual ~Chronos();\r
+\r
+ /*--------------------------------------*\\r
+ |* Methodes *|\r
+ \*-------------------------------------*/\r
+\r
+ void start();\r
+ double stop();\r
+ double timeFlight() const;\r
+ double getDeltaTime() const;\r
+ void print(const string& titre = "") const;\r
+ void print(ostream& stream, const string& titre = "") const;\r
+\r
+ /*--------------------------------------*\\r
+ |* Friend *|\r
+ \*-------------------------------------*/\r
+\r
+ friend ostream& operator <<(ostream& stream, const Chronos& chrono);\r
+\r
+ private:\r
+\r
+ /*--------------------------------------*\\r
+ |* Methodes *|\r
+ \*-------------------------------------*/\r
+\r
+ static double time();\r
+\r
+ /*--------------------------------------*\\r
+ |* Attributs *|\r
+ \*-------------------------------------*/\r
+\r
+ double timeStart;\r
+ double timeStop;\r
+ double deltaTime;\r
+ bool isRunning;\r
+ };\r
+\r
+#endif\r