View Single Post
  #12   Spotlight this post!  
Unread 03-12-2004, 00:52
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Is there a built in tick/millisecond counter?

Quote:
Originally Posted by Kevin Watson
I'd like to point out two things:

You're spending quite a bit of effort in trying to poke holes in my example code. If you don't know that the 'volatile' keyword is indeed necessary, we shouldn't be having this exchange.

-Kevin
Whoa there Kevin! I think that your example code is a
great contribution to the community, and I refer to it as such.
I am not trying to poke holes in it at all... I only pointed out
that the hazard exists, and can be run into depending on how,
and how often, you read the counter.