RFR: 7039: Timestamp granularity too coarse

Marcus Hirt hirt at openjdk.java.net
Wed Jan 20 01:04:44 UTC 2021


On Tue, 19 Jan 2021 21:58:44 GMT, Suchita Chaturvedi <schaturvedi at openjdk.org> wrote:

> As part of this enhancement request, user can see the timestamps down to fraction of a second.
> This will solve the problem for all views, including Event Browser, Properties where most of the records are differentiated by fraction of seconds but since the timestamp shown is only till second, the difference is not visible on UI.
> 
> For ex: If the End Time of Event is listed as below, the difference is clearly visible
> ![image](https://user-images.githubusercontent.com/11155712/105097851-465a8680-5acf-11eb-8a5c-f01ecb3390ce.png)

Changes requested by hirt (Lead).

core/org.openjdk.jmc.common/src/main/java/org/openjdk/jmc/common/unit/TimestampKind.java line 143:

> 141: 
> 142: 	static {
> 143: 		DateFormat df = new SimpleDateFormat("MM/dd/yyyy h:mm:ss:SSS a");

This change is forcing US formatting on everyone...

-------------

PR: https://git.openjdk.java.net/jmc/pull/201


More information about the jmc-dev mailing list