when i'm on time apps at theat speed i use gettimeofday() functions, which give microseconds, let alone milliseconds:
Code:
struct timeval times[SAMPLES];
for ( i = 0 ; i < SAMPLES ; i++ ) {
gettimeofday( ×[i], NULL);
set_pin(LP_PIN17);
}
time = times[i].tv_usec - times[0].tv_usec;
well thats a few snippets of me using it... check the man page for more info