--- old/src/share/vm/gc_implementation/shared/gcTraceTime.cpp 2019-01-28 17:43:51.000000000 +0800 +++ new/src/share/vm/gc_implementation/shared/gcTraceTime.cpp 2019-01-28 17:43:50.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -72,7 +72,8 @@ if (_doit) { const Tickspan duration = stop_counter - _start_counter; - double duration_in_seconds = TicksToTimeHelper::seconds(duration); + double duration_in_seconds = TimeHelper::counter_to_seconds(duration.value()); + if (_print_cr) { gclog_or_tty->print_cr(", %3.7f secs]", duration_in_seconds); } else {