[Cialug] Seconds only timestamp

Brian Wood woodbrian77 at gmail.com
Wed Jun 18 14:37:42 CDT 2014


From: Paul Gray

> gettimeofday would be my goto call for just seconds (since epoch).

I think gettimeofday would also be giving more info than I need.

"The gettimeofday() function shall obtain the current  time,  expressed  as
       seconds  and  microseconds  since  the  Epoch"

The best I've found so far is to use the CLOCK_REALTIME_COARSE
flag.

-- 
Brian
Ebenezer Enterprises
http://webEbenezer.net


More information about the Cialug mailing list