|Top Previous Next|
Scripts > Class elements and c++ instructions > Other functions > clock_sec
Calculates the "CPU time" in seconds, since the program has been started.
clock_sec can be used, to calculate the time, which passed between two events.
clock_sec in principle is: std::clock() / CLK_TCK;
clock_sec returns the used "CPU time" in seconds, since the program has been started.
If the processor time isn't available or the value cannot be represented, the function returns -1.
This page belongs to the TextTransformer Documentation
|Home Content German|