post  How to get system time in Linux using C++

tnjones (38)   Link to this post
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
Duoas (2964)   Link to this post
http://linux.die.net/man/7/time

Good luck!
jsmith (3099)   Link to this post
You can also try gettimeofday() or setitimer(), both of which will provide you finer granularity than time().
Duoas (2964)   Link to this post
You do know that section 7 is basically "overview and how-to", right?

This topic is archived - New replies not allowed.