-
Path: news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!n
ews-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-
05.dc1.easynews.com.POSTED!not-for-mail
From: A.L. <a...@a...com>
Newsgroups: pl.comp.programming
Subject: Re: int 32, int 64, java
Message-ID: <7...@4...com>
References: <1...@j...googlegroups.com>
<h544aj$6av$1@inews.gazeta.pl>
<9...@4...com>
<h546tv$fsc$1@inews.gazeta.pl>
X-Newsreader: Forte Agent 4.2/32.1118
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
Lines: 34
X-Complaints-To: a...@e...com
Organization: Forte Inc. http://www.forteinc.com/apn/
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will
be unable to process your complaint properly.
Date: Sun, 02 Aug 2009 10:02:32 -0500
Xref: news-archive.icm.edu.pl pl.comp.programming:182958
[ ukryj nagłówki ]On Sun, 02 Aug 2009 15:13:17 +0100, Mateusz Loskot
<s...@s...net> wrote:
>A.L. wrote:
>> On Sun, 2 Aug 2009 13:28:51 +0000 (UTC), "Mariusz Marszałkowski"
>> <b...@N...gazeta.pl> wrote:
>>
>>> mgk <m...@w...pl> napisał(a):
>>>
>>>> Czyli jak mozna sie bylo spodziewac czas operacji w srodowisku 64bit
>>> No właśnie, zrób lepszy pomiar czasu. Zmierz czas pracy procesora, a nie
>>> czas który upłynął od startu do zakończenia. Pod linuxem jest spacjalna
>>> komenda, chyba "times". Pod windowsem nie umiem nic doradzić.
>>
>> Lava ma metode System.nanoTime() podajaca czas z rozdzielczoscai
>> nanosekundowa.
>
>O ile implementacja nanoTime() bazuje na odpowiednim API systemowym.
>
>Sun pisze [1]
>
>System.nanoTime() is implemented using the
>QueryPerformanceCounter/QueryPerformanceFrequency API (if available,
>else it returns currentTimeMillis*10^6
>
>[1] http://blogs.sun.com/dholmes/entry/inside_the_hotspo
t_vm_clocks
>
"If you are interested in measuring/calculating elapsed time, then
always use System.nanoTime(). On most systems it will give a
resolution on the order of microseconds. Be aware though, this call
can also take microseconds to execute on some platforms."
A.L.
Następne wpisy z tego wątku
- 02.08.09 15:04 Mateusz Loskot
- 02.08.09 19:59 mgk
- 02.08.09 21:16 Mariusz Marszałkowski
Najnowsze wątki z tej grupy
- Do czego nadaje się QDockWidget z bibl. Qt?
- Bibl. Qt jest sztucznie ograniczona - jest nieprzydatna do celów komercyjnych
- Co sciaga kretynow
- AEiC 2024 - Ada-Europe conference - Deadlines Approaching
- Jakie są dobre zasady programowania programów opartych na wtyczkach?
- sprawdzanie słów kluczowych dot. zła
- Re: W czym sie teraz pisze programy??
- Re: (PDF) Surgical Pathology of Non-neoplastic Gastrointestinal Diseases by Lizhi Zhang
- CfC 28th Ada-Europe Int. Conf. Reliable Software Technologies
- Młodzi programiści i tajna policja
- Ada 2022 Language Reference Manual to be Published by Springer
- Press Release - AEiC 2023, Ada-Europe Reliable Softw. Technol.
- Ada-Europe - AEiC 2023 early registration deadline approaching
- Ada-Europe Int.Conf. Reliable Software Technologies, AEiC 2023
- Ile cykli zajmuje mnożenie liczb 64-bitowych?
Najnowsze wątki
- 2024-05-20 Fiat 125p wer. pikup - w PRL moszna było, w III Reczy [pospolitej] nie moszna
- 2024-05-19 Pożar salonu z chińskimi elektrykami
- 2024-05-18 LED
- 2024-05-19 ceny nieruchomości
- 2024-05-18 Szczecin => UX/UI Designer <=
- 2024-05-18 Warszawa => Mid PHP Developer (Laravel) <=
- 2024-05-18 Warszawa => Software .Net Developer <=
- 2024-05-18 Warszawa => Mid/Senior QA Engineer <=
- 2024-05-18 Ulm => Solution Architect (sichere Kommunikation und IoT-Loesungen <=
- 2024-05-18 Katowice => Head of Virtualization Platform Management and Operating S
- 2024-05-18 Warszawa => SAP WM Consultant / Execution <=
- 2024-05-18 Wrocław => Consultant/Implementer Comarch ERP XL <=
- 2024-05-18 Gdańsk => Head of International Freight Forwarding Department <=
- 2024-05-18 Warszawa => Account Manager (Recruitment Services) <=
- 2024-05-18 Łódź => Salesperson - CRM Systems <=