RFR (S): JDK-8079561: Add a method to convert coutners to milliseconds
Bengt Rutisson
bengt.rutisson at oracle.com
Fri May 8 07:36:44 UTC 2015
On 08/05/15 09:36, Mikael Gerdin wrote:
> Hi Bengt,
>
> On 2015-05-07 10:14, Bengt Rutisson wrote:
>>
>> Hi everyone,
>>
>> Could I have a couple of reviews for this small change?
>>
>> https://bugs.openjdk.java.net/browse/JDK-8079561
>> http://cr.openjdk.java.net/~brutisso/8079561/webrev.00/
>
> Looks good to me.
Thanks, Mikael!
Bengt
>
> /Mikael
>
>>
>> TimeHelper contains a method called counter_to_seconds(jlong counter)
>> that converts a counter, as returned by for example
>> os:elapsed_counter(), into seconds. I'm currently working on a patch
>> where I need to convert into milliseconds instead. So, I would like to
>> add the method TimeHelper::counter_to_millis(jlong counter).
>>
>> It turns out that there are already a few places where we convert to
>> milliseconds. These can now use the new method instead of explicitly
>> multiplying with 1000.
>>
>> Thanks,
>> Bengt
>
>
More information about the hotspot-runtime-dev
mailing list