On Fri, Feb 24, 2012 at 10:09 AM, N. Coesel <n...@nctdev.nl> wrote: > At 16:37 24-2-2012, Grant Edwards wrote: >>On 2012-02-24, steve ayer <a...@handhelds.org> wrote: >> >> > not necessarily. you can certainly provide a device with a seed >> > timestamp that will carry through an app's runtime. >> >>What happens when the app is idle and the processor sleeps with the >>clos shut down? > > You work around that. Maybe a hardware RTC? IMHO there is very little > point in trying to argue time and date functions are irrelevant to a > microcontroller environment. A lot of devices do need to keep track > of date & time. Instead of re-inventing the wheel its better to use a > different (small) C library which has these functions and stay Posix > compliant.
Agreed; the underlying function might have to be user-provided just as putchar is for msp430-libc, but the API should be standard. See also https://sourceforge.net/tracker/?func=detail&aid=3383730&group_id=42303&atid=432701 Peter ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users