}
- StopWatch::StopWatch()
+ Stopwatch::Stopwatch()
: start_time(chrono::steady_clock::now())
{
}
double
- StopWatch::read() const
+ Stopwatch::read() const
{
chrono::steady_clock::time_point stop_time = chrono::steady_clock::now();
chrono::steady_clock::duration duration = stop_time - start_time;
std::ostream&
- operator<<(std::ostream& s, const StopWatch& sw)
+ operator<<(std::ostream& s, const Stopwatch& stopwatch)
{
boost::io::ios_all_saver ias(s);
- return s << fixed << sw.read() << "s";
+ return s << fixed << stopwatch.read() << "s";
}
vector<gid_t> getgrouplist(const char* username, gid_t gid);
- class StopWatch
+ class Stopwatch
{
public:
- StopWatch();
+ Stopwatch();
double read() const;
- friend std::ostream& operator<<(std::ostream& s, const StopWatch& sw);
+ friend std::ostream& operator<<(std::ostream& s, const Stopwatch& sopwatch);
protected:
try
{
- StopWatch stopwatch;
+ Stopwatch stopwatch;
const SDir subvolume(openSubvolumeDir());
y2mil("dev1:" << cmp_data.dev1 << " dev2:" << cmp_data.dev2);
- StopWatch stopwatch;
+ Stopwatch stopwatch;
cmpDirsWorker(cmp_data, dir1, dir2, "");
y2mil("stopwatch " << stopwatch << " for comparing directories");
}
void
SystemCmd::execute()
{
- StopWatch stopwatch;
+ Stopwatch stopwatch;
File_aC[IDX_STDERR] = File_aC[IDX_STDOUT] = NULL;
invalidate();
double t1;
{
- StopWatch sw1;
+ Stopwatch sw1;
#if 1
cmpdirs_cb_t cb1 = helper(result1);
double t2;
{
- StopWatch sw2;
+ Stopwatch sw2;
#if 1
cmpdirs_cb_t cb2 = helper(result2);