From: Athanasius <Athanasius@gurus.tf>
To: Jim <jimd@starshine.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Jiffies from userspace
Date: Sat, 2 Feb 2002 15:21:35 +0000 [thread overview]
Message-ID: <20020202152134.GB19785@gurus.tf> (raw)
In-Reply-To: <20020201123321.A799@mars.starshine.org>
In-Reply-To: <20020201123321.A799@mars.starshine.org>
[-- Attachment #1: Type: text/plain, Size: 848 bytes --]
On Fri, Feb 01, 2002 at 12:33:21PM -0800, Jim wrote:
> reasonable way to get an estimate of the "current" value of the
> kernel's jiffies:
>
> set -- `cat /proc/self/stat`; echo ${22}
>
> The cat will start a new process, field 22? of its "stat" node
> under proc should have the jiffies value at the time the process
> was started; so the echo command execute "shortly" thereafter.
>
> But am I right about the struct of stat: Is that really in ${22}?
Assuming so try:
awk '{print $22}' /proc/self/stat
for a 'single process' version.
-Ath
--
- Athanasius = Athanasius(at)gurus.tf / http://www.clan-lovely.org/~athan/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME
[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]
prev parent reply other threads:[~2002-02-02 15:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-01 20:33 Jiffies from userspace Jim
2002-02-01 20:58 ` Eli Carter
2002-02-01 21:01 ` Mark Zealey
2002-02-02 15:21 ` Athanasius [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020202152134.GB19785@gurus.tf \
--to=athanasius@gurus.tf \
--cc=jimd@starshine.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox