|
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
|
|
Message has 2 Replies: | | 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, (...) (22 years ago, 1-Sep-02, to lugnet.robotics.rcx.java)
| | | 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.*; /** * (...) (22 years ago, 3-Sep-02, to lugnet.robotics.rcx.java)
|
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|