HP3000-L Archives

May 2003, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tom Emerson <[log in to unmask]>
Reply To:
Tom Emerson <[log in to unmask]>
Date:
Sun, 11 May 2003 13:53:29 -0700
Content-Type:
Text/Plain
Parts/Attachments:
Text/Plain (54 lines)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 10 May 2003 7:16 pm, Wirt Atmar wrote:
> Brice asks:
> >  I wanted to know if anyone had an idea about where I could download
> >  a stopwatch or timer which would run on a PC.
> >
> >  Freeware preferred
>
> This is such a simple thing to write in Visual Basic that I took 15 minutes
> out and wrote a stopwatch.

I've been away all weekend, and so as I was catching up that was my thought as
well: form w/1 button, one text field, and a timer. [Mind you, I haven't
actually downloaded or seen the timer Wirt writes about, so his
implementation may differ] essentially the "start/stop" button merely enables
or disables the timer object.  The timer object is pre-set with a delay
[measured in milliseconds] and has an "on-timer" event that merely increments
the numeric value of the text field [initially set to "0"]  [with some
additional logic, the start/stop button could act as a "clear" button as
well...]

In a nutshell, that is the entire program.  The additional features Brice
clamored for in the follow up are left "as an excersice to the reader" ;)

[...]
> It requires no installation.

courtesy of the fact MS pre-loads your system with the required libraries
[most likely "vbrun32.dll" or similar]

[...] I set the resolution of the stopwatch to
> hundredths of a second, although that could be extended to thousandths and
> still likely be accurate.

even though the minimum resolution of the "timer" object in various languages
is "one millisecond", older systems had as a minimum physical "timer
interrupt" resolution something on the order of 18.2 ms -- just something to
consider... ;)
- --
Yet another Blog: http://osnut.homelinux.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: http://osnut.homelinux.net/TomEmerson.asc

iD8DBQE+vrhMV/YHUqq2SwsRAr8wAJ94+hEoqT1eB2n+rFm1+wgEn5pSJACfSPv7
QbRbdiuxsJajY8Jtmonwl/Q=
=89X5
-----END PGP SIGNATURE-----

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2