Created
May 4, 2016 03:50
-
-
Save achyutdev/54534a869f28e49fd9636160ad177c13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Around("execution(* cs544.spring.bank.service.*.*(..))") | |
public Object invoke(ProceedingJoinPoint call ) throws Throwable { | |
StopWatch sw = new StopWatch(); | |
sw.start(call.getSignature().getName()); | |
Object retVal = call.proceed(); | |
sw.stop(); | |
long totaltime = sw.getLastTaskTimeMillis(); | |
System.out.println("Time taken :" +totaltime); | |
return retVal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment