Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2009 14:27:11 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Koffie Yahoo <koffieyahoo@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Getting running time of child
Message-ID:  <86ocmy63ww.fsf@ds4.des.no>
In-Reply-To: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> (Koffie Yahoo's message of "Thu, 19 Nov 2009 11:14:47 %2B0100")
References:  <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Koffie Yahoo <koffieyahoo@gmail.com> writes:
> I've looked but not found (and I hope I'm in the right group here): Is
> there a way to get the user time and system time of a /running/ child
> from its parent (without having to mount procfs)?

If you have only one child, there's getrusage(2).

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ocmy63ww.fsf>