denen ich je umging, eine solche Zeitnahme nicht arbeitete!
tzen gelesen, die
ten...
Auf Mikrokontrollern, ja, da habe ich mir oft eine eigene genauere Zeitna hme gestrickt. Beispielsweise 1 Tick pro ms in einem IRPT, Inkrement alle 64ms in einem 'long', etc.
Ich habe das Kommando seit etwa 3 Monaten nicht aufgerufen. Die RTC im PC ist nun mal per Quarz getaktet, per CR2032.
Nicht nur; welcher Privatmensch braucht denn die ganz genaue amtliche Uhr zeit?
Doch. Es ging um eine Soundkarte, die gar keine Uhrzeit anzeigt. Sicher geht es da um Zeitdauern, nicht um absolute Werte. Um die Differenzen zwischen jeweils zwei absoluten Werten.
Nenne mir einen solchen PC in Privathand konkret...
Von 100000 PCs vielleicht einer.
|Scope: |This specification provides register model and programming interface def initions for new event timer |hardware for use on Intel Architecture-based Personal Computers. In this specification, the terms ?IA-PC |HPET and ?Event Timers? refer to the same timer hardware . |The IA-PC HPET Specification defines timer hardware that is intended to initially supplement and |eventually replace the legacy 8254 Programmable Interval Timer and the R eal Time Clock Periodic |Interrupt generation functions that are currently used as the ?d e-facto? timer hardware for IA-PCs.
Klar gibt es andere Interrupts. Was wichtiger ist: es gibt Timer-Interrupts
formatting link
Since Linux 2.6.21, Linux supports high-resolution timers (HRTs), optionally config? urable via CONFIG_HIGH_RES_TIMERS. On a system that supports HRTs, the accuracy of sleep and timer system calls is no longer constrained by the jiffy, but instead can be as accurate as the hardware allows (microsecond accuracy is typical of modern hard? ware). You can determine whether high-resolution timers are supported by checking the resolution returned by a call to clock_getres(2) or looking at the "resolution" entries in /proc/timer_list.
sys/time.h.
Posix meint "deprecated", man soll timer_gettime() verwenden, das ist in time.h.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.