'setSyncProvider' was not declared in this scope

When I test the example of DS1302RTC, the IDE always show:

exit status 1
'setSyncProvider' was not declared in this scope

while, I found in Arduino Time library, this function was really there, my IDE has been updated last month, is here anyone else has faced this troubleness?

Try adding

#include <TimeLib.h>