Program Listing for File Clock.h

Return to documentation for file (include/crpropa/Clock.h)

#ifndef CRPROPA_CLOCK_H
#define CRPROPA_CLOCK_H

namespace crpropa {
class Clock {
private:
        class Impl;
        Impl *impl;
public:
        Clock();
        virtual ~Clock();

        void reset();
        double getSecond();
        double getMillisecond();
        static Clock &getInstance();
};
} // namespace crpropa

#endif // CRPROPA_CLOCK_H