// // C++ Implementation: stopwatch // // Description: // // // Author: Lorenzo Bettini , (C) 2006 // // Copyright: See COPYING file that comes with this distribution // // #include "stopwatch.h" #include using namespace std; StopWatch::~StopWatch() { clock_t total = clock() - start; cout << "elapsed time (secs): " << double(total) / CLOCKS_PER_SEC << endl; }