In the end it was an Eclipse problem since it was unable to index the time.h
library. I solved it by following the most upvoted answer of this other SF question:
Adding manually time.h
to the C/C++ indexer.
Currently I am using Eclipse CDT Juno and the problem doesn't seems not to be happening anymore. As a side comment in Eclipse CDT Juno I couldn't find the location where to manually edit the C/C++ indexer settings.