/usr/include/Synopsis/Timer.hh is in libsynopsis0.12-dev 0.12-8.
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 | //
// Copyright (C) 2004 Stefan Seefeld
// All rights reserved.
// Licensed to the public under the terms of the GNU LGPL (>= 2),
// see the file COPYING for details.
//
#ifndef Synopsis_Timer_hh_
#define Synopsis_Timer_hh_
#include <ctime>
namespace Synopsis
{
class Timer
{
public:
Timer() : my_start(std::clock()) {}
double elapsed() const { return double(std::clock() - my_start) / CLOCKS_PER_SEC;}
private:
std::clock_t my_start;
};
}
#endif
|