[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Måling af tid på mindre end 1 sekund.



Poul-Erik Andreasen wrote:
> Men kan hardwaren overhovedet opnå den præcion. Svarer det ikke til at
> sætte micrometer markeringer på en tommestok.

Du kan programmere PIC'en (Programmable Interrupt controller) til at
generere interrupts med en given frekvens, som er langt højere end
1/sekund, og du kan i princippet nøjes med at kalde en funktion der
inkrementere en tæller for hvert interrupt kald så overhead er ikke
så stort. Det er samme funktion der bruges til at slice hvilke
process der kører, og skifte mellem dem for at lave multitasking.

-- 
          Mvh. Carsten Svaneborg
       http://www.softwarepatenter.dk
 hvor fremtidens idemonopoler bekæmpes idag.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *