# Timer Functions

Topics
Overview | Functions

Overview

The timer functions are general-purpose standalone functions used to perform various timing routines.

Functions

inline void Sleep(clock_t seconds)

- Pause the program for a specified number of seconds.

inline void SleepFor(clock_t seconds)

- Pause the program for a specified number of seconds. Same as the Sleep() function.

inline clock_t Start()

- Marks the starting time for the routine.

inline clock_t Stop()

- Marks the stop time for the routine.

inline clock_t ElapsedSeconds(clock_t begin, clock_t end)

- Calculates the elapsed time in seconds based on the start and stop times.

End Of Document