Computing.Net > Forums > Programming > Timing Microseconds

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Timing Microseconds

Reply to Message Icon

Name: saxman727
Date: January 10, 2005 at 20:10:12 Pacific
OS: Windows 98 SE
CPU/Ram: Pentium II - 400MHz / 224
Comment:

I know what the clock() function does. It works fine, but in a certain case I need to time things in 'us' rather than 'ms'. Is there anyway I can do this? Without being able to do this, it will be harder to keep my program reading a WAV in half-way decent sync (without accessing the sound card).



Sponsored Link
Ads by Google

Response Number 1
Name: BlueRaja
Date: January 10, 2005 at 22:44:57 Pacific
Reply:

Uhh..that's what the sound card is for.
The faster you can go is getting the tick-count. (GetTickCount())

BlueRaja.admin@gmail.com


0

Response Number 2
Name: wizard-fred
Date: January 11, 2005 at 07:01:37 Pacific
Reply:

The highest resolution you can get is the sampling frequency of the WAV file (44.1 KHz, Normally for stereo, I think.). Some sound cards have higher sampling rate (up to 192 KHz), but what is the WAV stored as. What are you trying to sync? As the WAV is sampled at intervals it is self clocked.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Timing Microseconds

To allow a thread sleep for microseconds www.computing.net/answers/programming/to-allow-a-thread-sleep-for-microseconds/20063.html

VBA math function for time dilation www.computing.net/answers/programming/vba-math-function-for-time-dilation/6177.html

batch file, display time www.computing.net/answers/programming/batch-file-display-time/2950.html