/usr/include/pbcopper/utility/Stopwatch.h is in libpbcopper-dev 0.0.1+20161202-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | #ifndef PBCOPPER_UTILITY_STOPWATCH_H
#define PBCOPPER_UTILITY_STOPWATCH_H
#include "pbcopper/Config.h"
#include <chrono>
namespace PacBio {
namespace Utility {
class Stopwatch
{
public:
/// \name Constructors & Related Methods
/// \{
/// Creates a stopwatch and begins timing.
Stopwatch(void);
Stopwatch(const Stopwatch& other) = default;
Stopwatch(Stopwatch&& other) = default;
Stopwatch& operator=(const Stopwatch& other) = default;
Stopwatch& operator=(Stopwatch& other) = default;
~Stopwatch(void) = default;
/// \}
public:
/// \returns the elapsed time (in milliseconds) since timing began.
float ElapsedMilliseconds(void) const;
/// \returns the elapsed time (in seconds) since timing began.
float ElapsedSeconds(void) const;
/// \returns the elapsed time (in user-provided units) since timing began.
template<typename TimeUnit>
float Elapsed(void) const;
// resets internal values
void Reset(void);
private:
std::chrono::steady_clock::time_point start_;
};
} // namespace Utility
} // namespace PacBio
#include "internal/Stopwatch-inl.h"
#endif // PBCOPPER_UTILITY_STOPWATCH_H
|