Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

TimerLog.java 749B

1234567891011121314151617181920212223
  1. /*
  2. Copyright (c) Xerox Corporation 1998-2002. All rights reserved.
  3. Use and copying of this software and preparation of derivative works based
  4. upon this software are permitted. Any distribution of this software or
  5. derivative works must comply with all applicable United States export control
  6. laws.
  7. This software is made available AS IS, and Xerox Corporation makes no warranty
  8. about the software, its performance or its conformity to any specification.
  9. */
  10. package telecom;
  11. public aspect TimerLog {
  12. after(Timer t): target(t) && call(* Timer.start()) {
  13. System.err.println("Timer started: " + t.startTime);
  14. }
  15. after(Timer t): target(t) && call(* Timer.stop()) {
  16. System.err.println("Timer stopped: " + t.stopTime);
  17. }
  18. }