473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Peripheral clock

I have developed an Access application that replaces the paper scoresheet
scoring for QuizBowl competitions with live, lap-top based scoring. Among
other tasks the application displays a score board that is visible to the
teams that also includes the countdown clock that times the eight-minute
halfs. I have simulated the countdown clock by using the OnTimer event for
the form with the timer set for 1000 milliseconds. The problem that I am
having is that the form that I have designed is very rich in other Events
that I must respond to, and with the huge amounts of events that I am
responding to I find that frequently other code is running for a few more
milliseconds when the TimerEvent is triggered. The TimerEvent code is
delayed in its execution multiple times during a match, resulting in my
eight-minute half actually taking an extra 2-4 seconds.

Does anyone know of a peripheral device, preferably USB2.0 compliant, which
can act as an independent timing device? Ideally this device would have
properties and methods that I could read, write and call from Access (so
that, for example, I could respond to a '0:00' event.)

If anyone can think of an alternate solution, I would be appreciative.
Nov 12 '05 #1
2 1564
"Randy Shore" <TH*********@pacbell.net> wrote in message
news:OD*******************@newssvr25.news.prodigy. com...
I have developed an Access application that replaces the paper scoresheet
scoring for QuizBowl competitions with live, lap-top based scoring. Among
other tasks the application displays a score board that is visible to the
teams that also includes the countdown clock that times the eight-minute
halfs. I have simulated the countdown clock by using the OnTimer event for the form with the timer set for 1000 milliseconds. The problem that I am
having is that the form that I have designed is very rich in other Events
that I must respond to, and with the huge amounts of events that I am
responding to I find that frequently other code is running for a few more
milliseconds when the TimerEvent is triggered. The TimerEvent code is
delayed in its execution multiple times during a match, resulting in my
eight-minute half actually taking an extra 2-4 seconds.

Does anyone know of a peripheral device, preferably USB2.0 compliant, which can act as an independent timing device? Ideally this device would have
properties and methods that I could read, write and call from Access (so
that, for example, I could respond to a '0:00' event.)

If anyone can think of an alternate solution, I would be appreciative.


How about using the system clock for the time? Record the time at the
beginning of the half in a static variable. Use the TimerEvent to update
the on-screen clock, but calculate the display for your countdown from the
system clock.
Nov 12 '05 #2
Thanks for the interesting idea. I think that just might work.
"Randy Harris" <ra***@SpamFree.com> wrote in message
news:TK********************@newssvr28.news.prodigy .com...
"Randy Shore" <TH*********@pacbell.net> wrote in message
news:OD*******************@newssvr25.news.prodigy. com...
I have developed an Access application that replaces the paper scoresheet scoring for QuizBowl competitions with live, lap-top based scoring. Among other tasks the application displays a score board that is visible to the teams that also includes the countdown clock that times the eight-minute
halfs. I have simulated the countdown clock by using the OnTimer event

for
the form with the timer set for 1000 milliseconds. The problem that I am having is that the form that I have designed is very rich in other Events that I must respond to, and with the huge amounts of events that I am
responding to I find that frequently other code is running for a few more milliseconds when the TimerEvent is triggered. The TimerEvent code is
delayed in its execution multiple times during a match, resulting in my
eight-minute half actually taking an extra 2-4 seconds.

Does anyone know of a peripheral device, preferably USB2.0 compliant,

which
can act as an independent timing device? Ideally this device would have
properties and methods that I could read, write and call from Access (so
that, for example, I could respond to a '0:00' event.)

If anyone can think of an alternate solution, I would be appreciative.


How about using the system clock for the time? Record the time at the
beginning of the half in a static variable. Use the TimerEvent to update
the on-screen clock, but calculate the display for your countdown from the
system clock.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jaywant Dharwadkar | last post by:
We are developing a Web application on J2EE platform and require to support cetain peripheral devices such as MAGTEK PinPad and Card Swipe (http://www.magtek.com/) connected to a PC port. I am...
3
by: James Harriman | last post by:
Hi, I need to be able to measure a time interval in milliseconds on a windows machine. I have tried using time.clock() but it appears to measure time in seconds...Is there a way to measure time...
9
by: Gino Elloso - Philippines | last post by:
Hello, I made a webpage ( @ Geocities Free Webpages ) that contains a mousetrail clock script. I simply copied the script ( including all html tags ) exactly as it was from a source webpage (...
8
by: peterbe | last post by:
What's the difference between time.clock() and time.time() (and please don't say clock() is the CPU clock and time() is the actual time because that doesn't help me at all :) I'm trying to...
0
by: Peger, Daniel H. | last post by:
Hi, I'm having a slight problem with the precision of the standard c++ clock function as it is defined in time.h . On my system the shortest meassurable time period is 0.01 seconds, but for my...
33
by: Pushkar Pradhan | last post by:
I'm using clock() to time parts of my code e.g. clk1 = clock(); /* code */ clk2 = clock(); /* calculate time in secs */ ...... clk1 = clock(); /* code */ clk2 = clock();
54
by: CoreyWhite | last post by:
The following experiment is a demonstration of TIME TRAVEL. When writing this program, and testing it out I found that sometimes the program would engage itself in time travel but other times it...
12
by: cenktarhancenk | last post by:
is there a way to display a ticking clock in a web page using javascript? but not in a textbox, rather as text that i can change the style, font etc. cenk tarhan
5
by: none | last post by:
Hello, can you help? if I include: #include <time.h> and run the code: clock_t t = clock(); cout << "t is " << t << endl; I get (seemingly randomly) "t is 0" or "t is 10000"
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.