I'm trying to know the timestamp when I receive a message.
I should check if it has been N seconds of receiving the last message.
I'm using time_t
.
I take the current time like this: time (& myTime);
how can I check if they spent more than N seconds?
Is there a way to know the number of seconds (timestamp) of a total time_t?