Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.leopard.topnb;
 
Leopard Web层耗时.

Author(s):
阿海
public class LeopardWebTimeLog {
	private static final PerformanceService performanceService = TopnbBeanFactory.getPerformanceService();
	private static final ThreadLocal<LongTIME = new ThreadLocal<Long>();
	public static void start() {
		long time = System.nanoTime();
		.set(time);
	}
	public static void stop() {
		long startTime = .get();
		long endTime = System.nanoTime();
		long time = (endTime - startTime) / 1000L; // time 单位:微妙
		String methodName = "io.leopard.web.userinfo.UserinfoFilter.doLeopardFilter";
		.add(methodNametime);
	}
New to GrepCode? Check out our FAQ X