It appears to me that what you're really trying to achieve is what an "around" advise is made for...
around() : SomePointCut() { final long startTime = System.currentTimeInMillis(); proceed(); System.out.println("Call to " + thisJoinPoint + " took " + (System.currentTimeInMillis() - startTime + " milliseconds to return."); } You could of course capture the result of "proceed()" if you want to inspect it. Le 9 août 2012 à 14:45, Srinivas S Tamvada a écrit : > Hi > I have a point cut to capture the return of a method. > In this point cut, can I get the time when the method was invoked? ( I would > of course get this if I put a point cut on the invocation rather than return). > > More generally, if I have a point cut on a method for entry and return , is > there any way to correlate them together ? This should work even if there are > multiple simultaneous invocations of the method. > > Thanks. > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users