On 2012-02-24, Peter Bigot <big...@acm.org> wrote: > 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 >>>clock 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.
I'm not arguing that they're irrelvent, I'm just wondering if it makes sense to talk about trying to write a universal gettimeofday() function for inclusion in the library. >> 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. I'm not sure I see the point of the extra layer. Are there other library functions besides gettimeofday() that would call the underlying, user-provided function-that-isnt-gettimeofday? -- Grant Edwards grant.b.edwards Yow! I want to dress you at up as TALLULAH BANKHEAD and gmail.com cover you with VASELINE and WHEAT THINS ... ------------------------------------------------------------------------------ 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