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 20:47:07 +0900
- From: Curt Sampson <cjs@example.com>
- Subject: Re: [tlug] using rusage
- References: <78d7dd350806181930i6acda17co682c322d3a7872af@mail.gmail.com> <20080619035005.GB11561@lucky.cynic.net> <78d7dd350806190155k328d24bcjcf61cb707c42045c@mail.gmail.com>
- User-agent: Mutt/1.5.17 (2007-11-01)
On 2008-06-19 17:55 +0900 (Thu), Hung Nguyen Vu wrote: > return (tsec + ((float) tusec) / 1000000.0); > that is the return of stopTimer is in second, not usec or msec. It doesn't matter. Zero is zero, whether it be seconds, milliseconds or microseconds. > I expected that after a sleep(1), stopTimer() will return 1 seconds Well, that's a misunderstanding on your part. You asked the OS not to schedule your process for at least one second. Clearly, you won't be using any CPU during that wait; it's what you specifically asked for. 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: Josh Glover
- References:
- [tlug] using rusage
- From: Hung Nguyen Vu
- Re: [tlug] using rusage
- From: Curt Sampson
- Re: [tlug] using rusage
- From: Hung Nguyen Vu
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] OT: government getting ready to inspect your iPod, laptop without probable cause
- Next by Date: [tlug] Re: [Was: iptables] Forward multicats
- Previous by thread: Re: [tlug] using rusage
- Next by thread: Re: [tlug] using rusage
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links