How to get system time in Linux using C++

Sep 16, 2008 at 2:01am
Hello,
I have a project where I need to time how long a particular action takes within my program using the system clock. With this in mind, I have researched how to read the system clock in Linux put isn't coming up with much. If anyone can point me in the right direction, I will greatly appreciate it.

Thanks In Advance
Sep 16, 2008 at 4:00am
Sep 16, 2008 at 11:51am
You can also try gettimeofday() or setitimer(), both of which will provide you finer granularity than time().
Sep 16, 2008 at 1:12pm
You do know that section 7 is basically "overview and how-to", right?
Topic archived. No new replies allowed.