X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Jason Mills Newsgroups: comp.os.msdos.djgpp Subject: Timer inside interrupt handler Date: Sat, 23 Oct 2004 17:45:42 -0230 Organization: Memorial University of Newfoundland Lines: 13 Message-ID: NNTP-Posting-Host: jmills.ccore.mun.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: coranto.ucs.mun.ca 1098562543 19644 134.153.38.195 (23 Oct 2004 20:15:43 GMT) X-Complaints-To: usenet AT coranto DOT ucs DOT mun DOT ca NNTP-Posting-Date: Sat, 23 Oct 2004 20:15:43 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Does anyone have any suggestions as too what time functions can be safely called inside an interrupt handler? I need something with a resolution of > 80ms. Basically, I need a time stamp of when the IRS is called. I used uclock() originally, but I think it's causing some problems in other parts of my code. I'm aware of the other timing functions, but which one is "safest" to call inside the ISR? Is there a better way to get a time stamp inside an ISR then calling something like uclock(). Thanks, Jason