File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
src/hotspot/share/runtime Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1997, 2017 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1997, 2020 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -47,22 +47,6 @@ jlong TimeHelper::micros_to_counter(jlong micros) {
47
47
return micros * freq;
48
48
}
49
49
50
- elapsedTimer::elapsedTimer (jlong time, jlong timeUnitsPerSecond) {
51
- _active = false ;
52
- jlong osTimeUnitsPerSecond = os::elapsed_frequency ();
53
- assert (osTimeUnitsPerSecond % 1000 == 0 , " must be" );
54
- assert (timeUnitsPerSecond % 1000 == 0 , " must be" );
55
- while (osTimeUnitsPerSecond < timeUnitsPerSecond) {
56
- timeUnitsPerSecond /= 1000 ;
57
- time *= 1000 ;
58
- }
59
- while (osTimeUnitsPerSecond > timeUnitsPerSecond) {
60
- timeUnitsPerSecond *= 1000 ;
61
- time /= 1000 ;
62
- }
63
- _counter = time;
64
- }
65
-
66
50
void elapsedTimer::add (elapsedTimer t) {
67
51
_counter += t._counter ;
68
52
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1997, 2019 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1997, 2020 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,6 @@ class elapsedTimer {
37
37
bool _active;
38
38
public:
39
39
elapsedTimer () { _active = false ; reset (); }
40
- elapsedTimer (jlong time, jlong timeUnitsPerSecond);
41
40
void add (elapsedTimer t);
42
41
void start ();
43
42
void stop ();
You can’t perform that action at this time.
0 commit comments