11-09-2005 07:52 AM
11-10-2005 11:00 AM
The help for clock() states "This function returns an approximation of the amount of processor time your program has used since it started executing." It does not seem very likely that it would be off by anything like 20%. If you are measuring a relatively short pulse, could you be seeing the latency in your calls to whatever you have gating the time count for your signal? Measuring a pulsed signal in software without a realtime operating system can easily have issues. It can be done, but is subject to a number of variables. Hardware based solutions are often easier to implement.
11-10-2005 11:43 AM
11-10-2005 01:03 PM