提交 d882d3e6 编写于 作者: A Allen Wang

Make timer more accurate.

上级 b4a7b86f
......@@ -121,9 +121,9 @@ public class NamedConnectionPool extends ConnPoolByRoute {
@Override
protected BasicPoolEntry createEntry(RouteSpecificPool rospl,
ClientConnectionOperator op) {
createEntryCounter.increment();
Stopwatch stopWatch = creationTimer.start();
try {
createEntryCounter.increment();
return super.createEntry(rospl, op);
} finally {
stopWatch.stop();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册