There's more...

In many cases, it is sufficient to work with POSIX timestamps directly. Since they are represented as numbers, a simple numeric comparison can be used to decide which timestamp is newer or older. Similarly, subtracting one timestamp from another gives a time interval in seconds between them. If performance is a bottleneck, this approach can be preferable to comparing to native C++ time points.