[GitHub] [hbase] virajjasani edited a comment on pull request #3302: HBASE-25911 Replace calls to System.currentTimeMillis with EnvironmentEdgeManager.currentTime

2021-05-28 Thread GitBox
virajjasani edited a comment on pull request #3302: URL: https://github.com/apache/hbase/pull/3302#issuecomment-850502504 > https://stackoverflow.com/questions/19052316/why-is-system-nanotime-way-slower-in-performance-than-system-currenttimemill As per the Oracle blog (link to blog

[GitHub] [hbase] virajjasani edited a comment on pull request #3302: HBASE-25911 Replace calls to System.currentTimeMillis with EnvironmentEdgeManager.currentTime

2021-05-28 Thread GitBox
virajjasani edited a comment on pull request #3302: URL: https://github.com/apache/hbase/pull/3302#issuecomment-850442580 > In general we should all use System.nanoTime for calculating elapsed time, but System.nanoTime is usually slower than System.currentTimeMillis @Apache9 do you