Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39584
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Get real, user and system time |
| Date | Wed, 22 Jul 2020 00:23:02 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 22 |
| Message-ID | <rf7psa$ta5$1@dont-email.me> (permalink) |
| References | <87o8oc99wk.fsf@munus.decebal.nl> <rf5a0m$q3a$1@dont-email.me> <rf6kur$apm$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Tue, 21 Jul 2020 22:23:06 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="df9da87c3149915b2739864760430f88"; logging-data="30021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198ynXP0vW+TRDgwCjFEvRy" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
| Cancel-Lock | sha1:Zc8P2qwDDD3VBFiSwUGKxD5XlXc= |
| In-Reply-To | <rf6kur$apm$1@dont-email.me> |
| X-Antivirus-Status | Clean |
| Content-Language | en-US |
| X-Antivirus | AVG (VPS 200721-10, 07/21/2020), Outbound message |
| Xref | csiph.com comp.lang.java.programmer:39584 |
Show key headers only | View raw
On 2020-07-21 13:52, Martin Gregorie wrote: > On Tue, 21 Jul 2020 01:40:05 +0200, Daniele Futtorovic wrote: >> 2. System and user time are process-level notions, aren't they? >> > Yes. > >> I don't know the C world that well, but could you get them at the >> method-level if you limited the scope to native code on a >> POSIX-compliant system? If not, you can be certain they won't >> be available in Java. >> > No. UNIX/Linux only aggregates elapsed and mill time per process, so > even for a multi-threaded process you only get process totals. Under UNIX/ > Linux the JVM is a multi-threaded process with a single thread handling > user program execution: IIRC it spawns threads to handle garbage > collection and Swing/awt but nothing external to the JVM process will see > either these or any user-defined threads that your program may execute. Thanks for the confirmation, Martin. -- DF.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Get real, user and system time Cecil Westerhof <Cecil@decebal.nl> - 2020-07-18 16:26 +0200
Re: Get real, user and system time Martin Gregorie <martin@mydomain.invalid> - 2020-07-18 20:59 +0000
Re: Get real, user and system time Luuk <luuk@invalid.lan> - 2020-07-20 08:06 +0200
Re: Get real, user and system time Martin Gregorie <martin@mydomain.invalid> - 2020-07-20 08:55 +0000
Re: Get real, user and system time Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2020-07-21 01:40 +0200
Re: Get real, user and system time Martin Gregorie <martin@mydomain.invalid> - 2020-07-21 11:52 +0000
Threads [Was: Get real, user and system time] Eric Sosman <esosman@comcast-dot-net.invalid> - 2020-07-21 08:42 -0400
Re: Threads [Was: Get real, user and system time] Martin Gregorie <martin@mydomain.invalid> - 2020-07-21 16:55 +0000
Re: Threads [Was: Get real, user and system time] Eric Sosman <esosman@comcast-dot-net.invalid> - 2020-07-21 15:46 -0400
Re: Threads [Was: Get real, user and system time] Martin Gregorie <martin@mydomain.invalid> - 2020-07-21 20:16 +0000
Re: Threads [Was: Get real, user and system time] Martin Gregorie <martin@mydomain.invalid> - 2020-07-21 23:14 +0000
Re: Get real, user and system time Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2020-07-22 00:23 +0200
csiph-web