I'm slightly confused - whats wrong with gettimeofday()?  It may be
higher precision, but it still
gives you the ability to find the nearest second with a few extra operations.

-Aaron

On Mon, Jun 15, 2009 at 10:48 AM, Rainer
Gerhards<[email protected]> wrote:
> Hi all,
>
> I am having a hard time finding a suitable-fast but tickles solution to
> obtaining low-precision time API under Linux. Please read here:
>
> http://blog.gerhards.net/2009/06/high-peformance-low-precision-time-api.html
>
> If I don't find a better solution, I'll probably be forced to run rsyslogd on
> a tick, which would not be a good thing from a power consumption point of
> view.
>
> Comments and suggestions are highly appreciated.
>
> Thanks,
> Rainer
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to