< prev index next >

src/share/vm/runtime/timer.cpp

Print this page
rev 8910 : full patch for jfr

*** 1,7 **** /* ! * Copyright (c) 1997, 2014, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1997, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 46,55 **** --- 46,61 ---- double count = (double) counter; double freq = (double) os::elapsed_frequency(); return counter/freq; } + double TimeHelper::counter_to_milliseconds(jlong counter) { + double count = (double) counter; + double freq = (double) os::elapsed_frequency() / (double) 1000; + return counter/freq; + } + void elapsedTimer::add(elapsedTimer t) { _counter += t._counter; } void elapsedTimer::start() {
< prev index next >