Kernel Timer - gettimeofday()

Kernel Timer - gettimeofday()

Post by Immanuel Albert Samu » Sat, 29 Mar 2003 05:45:02



Hello all,
      I would like to know the procedure of operation of the
gettimeofday() method.I am planning to write my own timer so it would
be helpful if anyone can suggest me how to go about doing this.I've
had a start with reading about setitimer but i still do not have the
clear picture of what i have to do. so please guys help me...
cheers,
immanuel
 
 
 

Kernel Timer - gettimeofday()

Post by Joshua Jone » Sat, 29 Mar 2003 12:58:37



Quote:> Hello all,
>      I would like to know the procedure of operation of the
> gettimeofday() method.I am planning to write my own timer so it would
> be helpful if anyone can suggest me how to go about doing this.I've
> had a start with reading about setitimer but i still do not have the
> clear picture of what i have to do. so please guys help me...
> cheers,

I believe this is architecture-dependent.  Look at the do_gettimeofday()
function in arch/xxxx/kernel/time.c  (go to lxr.linux.no and just search
for the do_gettimeofday() call).

--
 josh(at)cc.gatech.edu  |  http://intmain.net:800

 640249 local keystrokes since last reboot (64 days ago)