| 
 | 
On Mon, 5 Feb 2007, James H H Lampert wrote:
One thing escapes me. Maybe I'm just getting old. But I'm having trouble finding a way to get a timestamp in C that's any finer than whole-second resolution.
gettimeofday() should get you what you need.  It uses a struct timeval:
struct timeval {
    time_t      tv_sec;     /* seconds */
    suseconds_t tv_usec;    /* microseconds */
};
and gives the number of seconds and microseconds since the Epoch.
James Rich
It's not the software that's free; it's you.
        - billyskank on Groklaw
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.