blob: d9e38799d248599a7e6aa83c9e392c699ae86218 [file] [log] [blame]
#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);
}