# include # include # include "wtime.hpp" using namespace std; //****************************************************************************80 double wtime ( ) //****************************************************************************80 // // Purpose: // // WTIME reports the elapsed wallclock time. // // Discussion: // // The reliability of this function depends in part on the value of // CLOCKS_PER_SEC. // // Licensing: // // This code is distributed under the MIT license. // // Modified: // // 27 April 2009 // // Author: // // John Burkardt // // Output: // // double VALUE, the reading of the wall clock, in seconds. // { double value; value = ( double ) clock ( ) / ( double ) CLOCKS_PER_SEC; return value; }