Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::difftime is an STL function to obtain the time difference in ticks between two std::clock_t structures.
std::difftime is defined in the header file ctime.h.
#include <cstdlib> |
Screen output (elapsed time might differ):
Elapsed time: 0.16 seconds |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.