final String workName = annotation != null && !annotation.value().isEmpty() ? annotation.value() : signature.getName();
long start = System.currentTimeMillis();
try {
Object ret = joinPoint.proceed();
workMonitor.recordWorkOk(workName, System.currentTimeMillis() - start);
return ret;
}
catch (InterruptedException e) {
workMonitor.recordWorkError(workName, System.currentTimeMillis() - start);
Thread.currentThread().interrupt();