[Cialug] Seconds only timestamp
Paul Gray
gray at cs.uni.edu
Tue Jun 17 20:16:38 CDT 2014
On 06/15/2014 06:52 PM, Brian Wood wrote:
> Is there an api that returns just the number of seconds? Currently
> I'm using clock_gettime and CLOCK_REALTIME_COARSE. The
> docs say that CLOCK_REALTIME_COARSE is;
>
> "A faster but less precise version of CLOCK_REALTIME."
>
> I don't know how coarse it is, but I only care about the seconds.
gettimeofday would be my goto call for just seconds (since epoch).
--
Paul Gray -o)
314 East Gym, Dept. of Computer Science /\\
University of Northern Iowa _\_V
Message void if penguin violated ... Don't mess with the penguin
No one says, "Hey, I can't read that ASCII attachment ya sent me."
More information about the Cialug
mailing list