ENH: also displays command output
This commit is contained in:
parent
23e1a28276
commit
ea7888c11b
|
@ -93,11 +93,13 @@ int main(int ac, char** av)
|
||||||
time(&time_start);
|
time(&time_start);
|
||||||
clock_start = clock();
|
clock_start = clock();
|
||||||
|
|
||||||
cmSystemTools::RunCommand(command.c_str(), output, 0, false);
|
cmSystemTools::RunCommand(command.c_str(), output, 0, true);
|
||||||
|
|
||||||
clock_finish = clock();
|
clock_finish = clock();
|
||||||
time(&time_finish);
|
time(&time_finish);
|
||||||
|
|
||||||
|
std::cout << output.c_str();
|
||||||
|
|
||||||
double clocks_per_sec = (double)CLOCKS_PER_SEC;
|
double clocks_per_sec = (double)CLOCKS_PER_SEC;
|
||||||
std::cout << "Elapsed time: "
|
std::cout << "Elapsed time: "
|
||||||
<< (time_finish - time_start) << " s. (time)"
|
<< (time_finish - time_start) << " s. (time)"
|
||||||
|
|
Loading…
Reference in New Issue