|
I guess it won't be easy without modifying the program.
You can always use getrusage() to get the time spent so far and have the program in question print deltas when you send it signals (ie, SIGUSR1). The remaining time is always relative to the task at question and system load, too. Fortunately, getrusage() is precise enough because it says the effective time spent running.
|