Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] using rusage
- Date: Thu, 19 Jun 2008 12:50:06 +0900
- From: Curt Sampson <cjs@example.com>
- Subject: Re: [tlug] using rusage
- References: <78d7dd350806181930i6acda17co682c322d3a7872af@mail.gmail.com>
- User-agent: Mutt/1.5.17 (2007-11-01)
On 2008-06-19 11:30 +0900 (Thu), Hung Nguyen Vu wrote: > What is wrong with this code? > > wget http://aoclife.ddo.jp/~vuhung/tmp/testTimer.c > gcc testTimer.c > ./a.out > stop: 0.000 > stop: 0.000 > stop: 0.000 > stop: 0.000 Absolutely nothing, as far as I can tell. Your program is reporting exactly the results one would expect. (Oh, what's wrong with the *programmer*, you mean? :-) Keep in mind that your "utime" is the amount of CPU used by the process outside of kernel code. Now the sleep call basically is a request to stop executing your program for that amount of time....) cjs -- Curt Sampson <cjs@example.com> +81 90 7737 2974 Mobile sites and software consulting: http://www.starling-software.com
- Follow-Ups:
- Re: [tlug] using rusage
- From: Hung Nguyen Vu
- References:
- [tlug] using rusage
- From: Hung Nguyen Vu
Home | Main Index | Thread Index
- Prev by Date: [tlug] using rusage
- Next by Date: Re: [tlug] First FF3.0 bug? F6 doesn't work
- Previous by thread: [tlug] using rusage
- Next by thread: Re: [tlug] using rusage
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links