|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||
|
|||
|
Re: Using TimerTasks
Thanks for the reassurance.
Here's another question... If I use Timer.delay() from the WPILibJ in a TimerTask, does that still pause ALL of your code? I wouldn't think so, because it only sleeps the current thread (as I understand it... I'm not sure). Here's the delay() function in the Timer Class: Code:
public static void delay(final double seconds) {
try {
Thread.sleep((long) (seconds * 1e3));
} catch (final InterruptedException e) {
}
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Magnets | 1jbinder | Rules/Strategy | 6 | 23-01-2008 19:42 |
| using tangent | LightWaves1636 | Math and Science | 2 | 13-02-2006 08:06 |
| Using Potentiometers | arpus maximus | Electrical | 5 | 20-11-2004 16:45 |
| Using Linux? | Raven_Writer | IT / Communications | 41 | 05-07-2004 16:53 |
| Using Flash | Keys | Website Design/Showcase | 8 | 12-03-2003 18:31 |