Under Linux (and possibly POSIX in general), clock() returns the amount of CPU time used by the process, not any value based on real time. Note that user+sys=74.458 s.
I can't seem to find any way to get the real value.
I need some help or advice here:
My intention is clear:
a) I have a thread which does some object creation and i wish to store the time it has been created. Do I use sys, user or real time to store this value?
b) another timer thread will continue to run and if it checks and finds out that a object is outdated (by comparing the date), it will trigger another thread to do something else.