Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / base / Measure.h
index 8c2806b..29293d1 100644 (file)
@@ -90,6 +90,18 @@ namespace zypp
        * Timer keeps on running.
       */
       void elapsed() const;
+      /** \overload Tagging the time with some text
+       * \code
+       * elapsed( "after action foo..." );
+       * \endcode
+       */
+      void elapsed( const std::string & tag_r ) const;
+      /** \overload Tagging the time with e.g. a line number
+       * \code
+       * elapsed( __LINE__ );
+       * \endcode
+       */
+      void elapsed( long tag_r ) const;
 
       /** Stop a running timer. */
       void stop();