I'm looking to create some sort of a timer. I'd like it to count by milliseconds and return a true value when it counts to a specific time.
It would be used something like this:
1 2 3 4 5
|
if(alarm(1000)) {
// do some code
}
|
I tried using time.h, but it doesn't seem to have any millisecond commands. I need something faster than a second.
Could anybody give me any suggestions or tips? Thanks guys!
Last edited on
@Daleth
Thank you very much! Exactly what I was looking for!
Last edited on