Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/509#discussion_r33018426 --- Diff: utils/src/com/cloud/utils/Profiler.java --- @@ -23,24 +23,20 @@ private Long startTickInMs; private Long stopTickInMs; - public Profiler() { - startTickInMs = null; - stopTickInMs = null; - } - public long start() { - startTickInMs = System.currentTimeMillis(); + startTickInMs = System.nanoTime(); return startTickInMs.longValue(); } public long stop() { - stopTickInMs = System.currentTimeMillis(); + stopTickInMs = System.nanoTime(); return stopTickInMs.longValue(); } public long getDuration() { - if (startTickInMs != null && stopTickInMs != null) + if (startTickInMs != null && stopTickInMs != null) { return stopTickInMs.longValue() - startTickInMs.longValue(); --- End diff -- hasn't the semantics changed as it no longer return milliseconds but now micro-(or even nano-) seconds? (this goes for stop and start as well btw. Did you check the callers?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---