.. _program_listing_file__tmp_ws_src_ecl_core_ecl_time_include_ecl_time_stopwatch.hpp: Program Listing for File stopwatch.hpp ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/ecl_core/ecl_time/include/ecl/time/stopwatch.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /***************************************************************************** ** Ifdefs *****************************************************************************/ #ifndef ECL_STOPWATCH_HPP_ #define ECL_STOPWATCH_HPP_ /***************************************************************************** ** Includes *****************************************************************************/ #include #include "timestamp.hpp" #include "macros.hpp" #ifdef ECL_HAS_TIMESTAMP /***************************************************************************** ** Namespaces *****************************************************************************/ namespace ecl { /***************************************************************************** ** Classes *****************************************************************************/ class ecl_time_PUBLIC StopWatch { public: StopWatch(); virtual ~StopWatch() {} void restart(); TimeStamp elapsed(); TimeStamp split(); private: TimeStamp start_time, split_time; }; } // namespace ecl #endif /* ECL_HAS_TIMESTAMP */ #endif /* ECL_STOPWATCH_HPP_ */