home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!rpi!usenet.coe.montana.edu!news.uoregon.edu!nntp.uoregon.edu!stevev
- From: stevev@miser.uoregon.edu (Steve VanDevender)
- Newsgroups: comp.sys.hp48
- Subject: Re: Using the 48 as a stop watch.
- Date: 7 Jan 93 10:08:49
- Organization: University of Oregon Chemistry Stores
- Lines: 37
- Message-ID: <STEVEV.93Jan7100849@miser.uoregon.edu>
- References: <1993Jan7.043319.8532@vpnet.chi.il.us>
- NNTP-Posting-Host: miser.uoregon.edu
- In-reply-to: mox@vpnet.chi.il.us's message of Thu, 7 Jan 1993 04:33:19 GMT
-
- In article <1993Jan7.043319.8532@vpnet.chi.il.us>
- mox@vpnet.chi.il.us (William Moxley) writes:
-
- I would like to use my 48 as a stopwatch in the lab. Most of my times
- are less than a minute, but once inawhile their greater. I tried using
- the "time" function, but it seems to based on a 100 or something. After
- looking in the manual I tried converting it using ->HMS but I still got
- incorrect values. How do I do this?
-
- The TIME command returns the current time of day in the form:
-
- H.MMSSss
-
- That is, the hours past midnight, two digits for the minutes, two
- digits for seconds, and two digits for hundredths of seconds.
- You would want to use HMS\-> to convert the time to decimal
- hours, and perhaps multiply that by 3600 to get the time of day
- in seconds.
-
- A better command to use, both in terms of accuracy and
- convenience, would be the time returned by TICKS. TICKS returns
- a binary integer representing the current time in units of 1/8192
- second since midnight, January 1, 1900. This might not seem
- convenient for normal use but for timing applications it is more
- accurate. Taking two successive values of TICKS, subtracting the
- first from the second, converting the difference to a real using
- B\->R, and dividing by 8192 will give you elapsed time in seconds
- accurate to less than a millisecond (although one should count
- the overhead for calling TICKS and doing other computations in
- your timing application if you need extremely accurate timing).
- When using TICKS also make sure that the binary integer wordsize
- is 52 or greater (use STWS to set it).
- --
- Steve VanDevender stevev@greylady.uoregon.edu
- "Bipedalism--an unrecognized disease affecting over 99% of the population.
- Symptoms include lack of traffic sense, slow rate of travel, and the
- classic, easily recognized behavior known as walking."
-