clock_sec

Top  Previous  Next

Scripts > Class elements and c++ instructions > Other functions > clock_sec

 

Prototype

 

double clock_sec()

 

Description

 

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;

 

Return value

 

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