Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

microseconds tick count or hi resolution timing

Status
Not open for further replies.

neoaspilet11

Full Member level 5
Full Member level 5
Joined
Sep 29, 2005
Messages
277
Helped
29
Reputation
56
Reaction score
8
Trophy points
1,298
Location
Cebu, Philippines
Activity points
4,048
tickcount resolution

Hello guys,

Is there any function or API in Windows/visual basic that does return tick count in microseconds or even just a fraction of a millisecond. The current getTickCount function in Windows returms tick count in millisecond only. My applciations needs to measure timing in 50 - 60 microsend range. The signal lines of my application will be connected to teh parallel port of the host PC.

Thanks for any thoughts,
Jack
 

microseconds+vb6

QueryPerformanceCounter
QueryPerformanceFrequency

They normally use either the multimedia timer or the CPU clock cycle counter.

Update: Another method is to use the rdtsc assembler opcode. It directly reads the CPU clock cycle counter without having to call the operating system. However, older CPUs don't support this opcode, and you need to find some way of determining the CPU clock rate so you can calculate elapsed time.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top