You didn't show the full output from the build, but you appear to be using Windows and this is the type error you will get when this issues occurs.
ruiseixas:
If true, considering the people that uses Windows, is quite an Arduino API Fail...
There is no if about it. Windows ignoring case in file names creates this issue.
Windows is a total fail for ignoring case on file names.
Redmond had the opportunity to fix it back in the mid 90's when NT was being developed and in fact the developers did fix this, along with many other issues like using backward slashes for directory paths and even removing the DOS volume letters that were used by CPM that they licensed from Seatle Computing to originally get their initial version of Microsoft "DOS".
The early pre-release versions of NT were great, it used gcc for the toolset, a unified filesystem with no bogus drive letters, no backward slashes for directory separators, and used dashes for command line options instead of slashes.
In the end, MSFT decided to preserve all the "DOS" compatibility in NT by default when it was released (even in the XP version) and so people are still stuck with all those limitations today.
In terms of being an Arduino API fail, it is not a API file. Regardless of which header file you include, the API does not change. So it is not an API issue at all. This is more of a documentation issue.
You have understand that the Time library has been out for quite some time, long before there was any Arduino core that contained its own version of a time library that had a file called time.h
So, for MANY years there was no conflict. It was only recently that there was an issue. And also keep in mind that this is only an issue for certain cores and certain operating systems. So not everyone will see the issue.
AND don't forget that as soon as this issue showed up on Windows a fix was put into the Time library by adding the header file TimeLib.h to fix it for those operating systems (Windows for the most part) that are using a core that contains a time.h header file.
And finally, had you looked at the examples included in the Time library, they now all use TimeLib.h not Time.h
The reason that Paul didn't remove Time.h from the library when TimeLib.h was added is it would have potentially broken lots of existing code that is still working. And so while the library and the examples were fixed to support and use TimeLib.h, the old Time.h header file was left in to try to preserve backward compatibility so as not to break existing code that is still working.
One thing I will say is that I would highly discourage using the Arduino include library function from the IDE.
It can add incorrect header files to your code.
I recommend reading the documentation and looking at the examples to see what headers need to be included and add the necessary includes yourself.
[quote
I will use the function millis() instead avoiding this way any library inclusion, like my own Blink Without Delay sketch:
[/quote]
For your simple application, that would be best, as it seems that all you were using it for was measuring delays and actually trying or needed to do epoch based time tracking.
There are other several libraries that are designed to solve what you are doing that would be much better to use than the Time library.
--- bill