Re: Jiffies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2005-07-12 at 07:21 -0700, Nish Aravamudan wrote:
> On 7/12/05, R.Kaushik Kumar <kaukum@xxxxxxxxxxx> wrote:
> > hi all,
> > 
> > Is it possible to use "jiffies" in user space?
> > if not can we convert some clock value (like
> > gettimeofday()) into jiffies units?
> > or any other way out?

/proc/uptime gives you the uptime of the system in seconds, and as there
are HZ timer interrupts (i.e. jiffies) in a second, uptime(in sec)*HZ
should be your desired information.

Wieland


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux