I have the following little program:
#include <iostream>
int main() {
std::cout << "Time: " << __TIME__ << std::endl;
std::cout << "Timestamp: " << __TIMESTAMP__ << std::endl;
return 0;
}
which produces the following output:
As you can see, __TIME__
has a quite big difference with __TIMESTAMP__
, it is 4 seconds ahead.
Why does this happen? How can there be such a difference between the two times?
Even the program's build time was less than 4 seconds, so where does this difference come from?