1
my_time
에 대한 시스템 호출을 연장하려고합니다.시스템 호출 구현
나는 timekeeping.c를 확장하려고합니다. 그러나 그것은 나에게 임의의 시간을 준다.
struct timeval tv;
// get the current time
do_gettimeofday(&tv);
current_time->tv_sec=tv.tv_sec;
current_time->tv_nsec=tv.tv_usec*1000;
return(current_time->tv_nsec);