mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-20 02:05:58 +10:00
[강운덕] [LUCYSUS-1744] udp socket data receiv
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@574 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -23,7 +23,9 @@ public class StopWatch {
|
||||
public static long stopAndGetElapsed(String name) {
|
||||
Map<String, Long> map = local.get();
|
||||
if (map == null) {
|
||||
throw new IllegalStateException("Stopwatch is not started.");
|
||||
//throw new IllegalStateException("Stopwatch is not started.");
|
||||
// TODO application 에러로 전달되는경우가 있어서 일단 0으로
|
||||
return 0;
|
||||
} else {
|
||||
return System.nanoTime() - map.get(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user