   [ASM/C] implementation of a good timer in C?
  hello all!i would need the code for a timer with precision of a microsecond(10^-6) in C.i have also seen some unit in pascal that used assembler to get the same precision, so i'm wondering if there is a thing for C also?i don't wanna be a dick, but i need it tonight! :/thanks very much.TIMER.PAS:Procedure Enable; Begin    Port [$43] := $34;    Inline ($EB / $00);    Port [$40] := $00;    Inline ($EB / $00);    Port [$40] := $00; End;Procedure Renew; Begin    Port [$43] := $36;    Inline ($EB / $00);    Port [$40] := $00;    Inline ($EB / $00);    Port [$40] := $00; End;Function GetTime : LongInt;  Begin   Inline(    $FA/$BA/$20/$00/$B0/$0A/$EE/$B0/$00/$E6/$43/$EC/$89/$C7/$E4/    $40/$88/$C3/$E4/$40/$88/$C7/$F7/$D3/$E4/$21/$89/$C6/$B0/$FF/$E6/$21/    $B8/$40/$00/$8E/$C0/$26/$8B/$16/$6C/$00/$89/$F0/$E6/$21/$FB/$89/$F8/    $A8/$01/$74/$07/$81/$FB/$FF/$00/$77/$01/$42/$89/$5E/$FC/$89/$56/$FE);  End;
  Not sure if this helps, but in Windows QueryPerformance[Counter/Frequency] has microsecond resolution.   ;http://www.mindcontrol.org/~hplus/pc-timers.html;  will use the QueryPerformanceCounterty   