Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 30th, 2005, 6:38 PM   #1
ccflyer
Newbie
 
Join Date: Aug 2005
Location: Montana
Posts: 2
Rep Power: 0 ccflyer is on a distinguished road
Arrow Looking for a Program

Hey everyone,

I am looking for some kind of program that acts like a timer or a stopwatch and has accuracy to 1/10,000 of a second (Ex. 1.2987 sec). I have looked everywhere, but can't seem to find one.

Any help or suggestions would be greatly appreciated.
Thanks,
Chris C.
ccflyer is offline   Reply With Quote
Old Aug 30th, 2005, 6:45 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
That kind of accuracy is problematic in the average desktop system with a multi-process executive. You could get into kernel mode and use an interrupt if you know how to not kill a system under those circumstances. Some timing functions advertise high precision, but precision and accuracy aren't the same thing, and the precision is ephemeral, anyway.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 30th, 2005, 8:11 PM   #3
ccflyer
Newbie
 
Join Date: Aug 2005
Location: Montana
Posts: 2
Rep Power: 0 ccflyer is on a distinguished road
I am a fairly unexperienced programmer, and really don't know about getting into "kernel mode", and not killing the system. - but thanks anyway.

-Chris
ccflyer is offline   Reply With Quote
Old Aug 30th, 2005, 8:42 PM   #4
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
heh

I learned what the difference between precision and accuracy is yesterday!

Just one step closer to knowing as much useless shit as DaWei :-P

(kidding, kidding, no offense DaWei)
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Aug 30th, 2005, 10:37 PM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Uman, you don't know how funny that really is. I have a running joke with my landlady that I will give her one useless piece of information each day. And I do.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 31st, 2005, 12:01 AM   #6
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
That's easy.

One day, say, "did you know that I am not a Finn?"

Next day, "did you know that I am not Irish?"

etc.

or something similar
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Aug 31st, 2005, 7:34 AM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Well, my mom was Irish and my daddy is a Finn, but I get your drift. Actually, it runs more along the lines of telling her something like, "Two good gage blocks, when pressed together and rubbed against each other slightly, will adhere." Or that one of the guys in the Manhatten Project, responsible for determining what actually constituted a critical mass, died an ugly death due to severe radiation burns. I have the soul of a skald.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 31st, 2005, 7:53 AM   #8
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
You can try to develop a very simple OS yourself... just create a piece of assemble code which sets up your stack, create an interrupt for the PIT, use GRUB as bootloader and voila
Polyphemus_ is offline   Reply With Quote
Old Sep 20th, 2005, 5:05 PM   #9
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
Easy, Polyphemus, but don't you see that ccflyer is a newbie like many of us? And he said that he is an unexperienced programmer? No offense, but we are here to learn something...
ivan is offline   Reply With Quote
Old Sep 20th, 2005, 6:13 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Well, the OP did say
Quote:
Any help or suggestions would be greatly appreciated.
That's been a month and a half, I suspect he found a way or decided it was a little complex for his level and did something else.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:22 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC