Skip to content

Do not use System.currentTimeMillis() #280

@ash2k

Description

@ash2k

When measuring intervals of time it's much better & safer to use System.nanoTime() than System.currentTimeMillis(). The latter is affected by system clock drift and adjustments (like by system time daemon) and the former is much more precise and stable.
For example NettyResponseFuture can be improved and maybe some other classes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions