[ badam @ 22.05.2006. 15:10 ] @
Koristim komponentu TVicLpt v1.3 koja ima event: Code: procedure TForm1.VicLPT1LptInterrupt(DataPort, StatusPort: Byte; TimeStampLo, TimeStampHi: Cardinal); begin end; U helpu komponente, procedura je opisana: Citat: Parameters: DataPort - single byte value read from LPT data port StatusPort - single byte value read from LPT status port TimeStampLo - low part of time stamp (see QueryPerformanceCounter API function) TimeStampHi - high part of time stamp Remarks: 1. DataPort and StatusPort value was read immediately when a hardware interrupt occurs inside of the driver; 2. TimeStampLo, TimeStampHi - timestamp shows when a hardware interrupt occurs in the driver, created with RDTSC assembler instruction. 3. Just double-click at TVicLPT icon on the form to install the interrupt handler. Meni je potrebno vreme tipa TTimeStamp ili TTime. Ima li neko ideju kako da TimeStampLo i TimeStampHi prevedem u neki drugi tip? |