Changeset 1391 for branches/GNU/src/gcc/libjava/java/util/TimerTask.java
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/util/TimerTask.java (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/util/TimerTask.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 45 45 * <p> 46 46 * Example: 47 * < code>47 * <e> 48 48 * Timer timer = new Timer(); 49 49 * TimerTask task = new TimerTask() { 50 50 * public void run() { 51 * if (this.scheduledExecutionTime() <System.currentTimeMillis() + 500)51 * if (this.scheduledExecutionTime() System.currentTimeMillis() + 500) 52 52 * // Do something 53 53 * else … … 57 57 * }; 58 58 * timer.scheduleAtFixedRate(task, 1000, 1000); // schedule every second 59 * </ code>59 * </e> 60 60 * <p> 61 61 * Note that a TimerTask object is a one shot object and can only given once -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
