How we can make a counter with accurate nanosecond and picosecond steps measurement
Pretty small time frame. To put it in some sort of context, in one picosecond light travels about 300 μm.How we can make a counter with accurate nanosecond and picosecond steps measurement
Probably not possible given those constraints.FPG is not a cheap solution. I want to solve this with the computer processor. Is it possible or not.
__int64 freq, start, end, diff;
// start
QueryPerformanceFrequency((LARGE_INTEGER*)&freq);
QueryPerformanceCounter((LARGE_INTEGER*)&start);
// code to measure
Sleep(1234);
// end
QueryPerformanceCounter((LARGE_INTEGER*)&end);
diff = ((end - start) * 1000) / freq;
unsigned int milliseconds = (unsigned int)(diff & 0xffffffff);
printf("It took %u ms\n", milliseconds);
Ah, it seems the message has been posted now. It just took longer than expected (~23 hours).Perhaps trying to contact a moderator might be in order. A post in the forum is probably not a good idea, they don't moderate every single last post that comes through so they might not see this one. Use the boards contact section to leave a message to a moderator.
by Aaron Carman
by Aaron Carman
by Duane Benson
by Jake Hertz