To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 207
206  |  208
Subject: 
Help with Clock
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Thu, 29 Aug 2002 19:08:33 GMT
Viewed: 
4110 times
  
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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR