Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool f (const timespec& ts1, const timespec& ts2, const time_t timeDiffInMs)
- if(ts1 != ts2)
- {
- if((ts1 - ts2) > 0)
- {
- if ((ts1 - ts2) < timeDiffInMs))
- return true;
- else return false;
- }
- else if ((ts1 - ts2) > timeDiffInMs))
- return true;
- else return false;
- }
- return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement