about /proc/$pid/stat 's start time
hi all:
i have a problem about the stat file, i find the book say the stat file contain the start time, but how transform it to normarl datetime(2004-05-12 10:00),thanks |
This will do.
Code:
void print_time(int pid) |
Code:
#include <stdio.h> [root@server2 root]# ./a.out Wed Oct 3 23:48:59 2007 what wrong about this; as the same time i use this command'result is this [root@server2 root]# ps -aux|grep 3965 root 3965 0.0 0.3 4292 860 ? S Jun17 0:03 /bin/bash /surebet/bin/checktimeout.sh |
All times are GMT -5. The time now is 12:10 AM. |