问题
Is it possible to use graphic card clock from a windows application? More specifically - is it possible to somehow make graphic card to send interrupts on clock events (tick?) and hook to it from a software?
What I am trying to say is that PC clocks arent good. precision clocks cost a lot of money plus they are difficult when it comes to colo (GPS signal is not available and atomic clocks cost an arm and a leg and more). I read that new graphic cards have precision clocks on them. So my immediate thought - can I use them to sync my app with precision down to 100ns perhaps (mental note to myself)? any ideas?
P.S. Or audio card on that matter... P.P.S. PLEASE answer the question - can I hook up to a graphic/audio card internal clock, not the windows vs linux discussion. thank you
回答1:
No, you cannot "use them to sync my app with precision down to 100ns perhaps". Interrupt processing jitter can be greater than 100ns. You'd need to use the very highest-priority interrupt and never let interrupts be disabled.
Then you want this in .NET? Non-deterministic garbage collection and precision timing just aren't compatible. Pick a platform more suited to your requirements.
来源:https://stackoverflow.com/questions/9040967/access-graphic-card-clock-programmatically