|
发表于 2006-6-24 19:59:56
|
显示全部楼层
do_acct_process(long exitcode, struct file *file)
{
...
/* calculate run_time in nsec*/
do_posix_clock_monotonic_gettime(&uptime);
run_time = (u64)uptime.tv_sec*NSEC_PER_SEC + uptime.tv_nsec;
run_time -= (u64)current->start_time.tv_sec*NSEC_PER_SEC
+ current->start_time.tv_nsec;
...
} |
|