#include <ctime> | |
extern "C" { | |
float second_(); | |
double dsecnd_(); | |
} | |
// Elapsed CPU Time in seconds. | |
float second_(float* x, float* y) { | |
return static_cast<float>(std::clock()) / static_cast<float>(CLOCKS_PER_SEC); | |
} | |
double dsecnd_(double* x, double* y) { | |
return static_cast<double>(std::clock()) / | |
static_cast<double>(CLOCKS_PER_SEC); | |
} |