login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
6
Re: HZ from userspace
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Ray Lee <ray-lk@...>
To: Piotr Jaroszyński <p.jaroszynski@...>
Cc: <linux-kernel@...>
Subject:
Re: HZ from userspace
Date: Wednesday, August 6, 2008 - 5:49 pm
On Wed, Aug 6, 2008 at 1:48 PM, Piotr Jaroszyński <p.jaroszynski@gmail.com> wrote:
quoted text
> Hello, > > I want to be able to convert starttime from /proc/#/stat to absolute > time and it seems that I need HZ to do that as it is measured in > jiffies. How can I get HZ? I have seen some discussion about this but > haven't found a definite answer. procps is using some hacks do it and > I would prefer to avoid them. > I only need a solution for modern kernels, say 2.6.20+ if that matters.
`man sysconf`, in particular you want sysconf(_SC_CLK_TCK).
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
HZ from userspace
, Piotr Jaroszyński
, (Wed Aug 6, 4:48 pm)
Re: HZ from userspace
, Ray Lee
, (Wed Aug 6, 5:49 pm)
Re: HZ from userspace
, Piotr Jaroszyński
, (Wed Aug 6, 6:07 pm)
Re: HZ from userspace
, Sven Wegener
, (Wed Aug 6, 6:19 pm)
Re: HZ from userspace
, Ray Lee
, (Wed Aug 6, 6:16 pm)
Re: HZ from userspace
, Piotr Jaroszyński
, (Wed Aug 6, 6:20 pm)
Re: HZ from userspace
, Ray Lee
, (Wed Aug 6, 6:20 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
git
:
openbsd-misc
:
linux-netdev
:
David Miller
[GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Natalie Protasevich
[BUG] New Kernel Bugs
Colocation donated by:
Who's online
There are currently
3 users
and
534 guests
online.
Online users
dogbehavior
drewsbonanza
paipailee32s
Syndicate