How to build a arduino with accurate rtc?

DVDdoug:
Standard C/C++ has [u]clock/time[/u] functions but I don't know if that's part of the Arduino C++ library.

There is a 3rd party time library, TimeLib.h; it was originally called time.h