 | | Re: Help with Clock
|
| (...) Here is a Stopwatch class that does the sort of thing that Jeurgen discussed in his message. You can instantiate as many stopwatches as you want to keep track of the elapsed time between different events. import josx.platform.rcx.*; /** * (...) (24 years ago, 3-Sep-02, to lugnet.robotics.rcx.java)
| | |  | | Re: Legos or Lejos
|
| (...) If you already know some Java, I recommend Lejos. It has some very reliable classes for RCX to RCX communications using Java streams. It also has some useful debugging features. Good luck, Roger (24 years ago, 3-Sep-02, to lugnet.robotics.rcx.java, lugnet.robotics.rcx.legos)
| | |  | | Re: Help with Clock
|
| Hi Scott, (...) yes. It is like a big wall clock that shows milliseconds. (...) System.currentTimeMillis(); Note that this is a long integer. If you need more than one timer you can remember the time in variables and then compute the difference, (...) (24 years ago, 1-Sep-02, to lugnet.robotics.rcx.java)
| | |  | | Help with Clock
|
| I am using legjos and... having problems understanding the clock/timers. 1. Are their only one timer clock? 2. How do you acess the timers clock? What code would I use? Scott (24 years ago, 29-Aug-02, to lugnet.robotics.rcx.java)
| | |  | | Re: Legos or Lejos
|
| Hi Geeraard, Well, it mostly depends on what is your favorite language. If you're a hard-core C coder and don't mind working in a difficult coding environment, LegOS might be for you. Otherwize I would recommend leJOS. Note that in the past, LegOS (...) (24 years ago, 29-Aug-02, to lugnet.robotics.rcx.java, lugnet.robotics.rcx.legos)
| |