SyntaxFix
Write A Post
Hire A Developer
Questions
Your curtime variable holds the number of seconds since the epoch. If you get one before and one after, the later one minus the earlier one is the elapsed time in seconds. You can subtract time_t values just fine.
curtime
time_t