SyntaxFix
Write A Post
Hire A Developer
Questions
You can use a time_t struct and clock() function from time.h.
time_t
clock()
Store the start time in a time_t struct by using clock() and check the elapsed time by comparing the difference between stored time and current time.