• Advertisement
Sign in to follow this  

time based cursor blinking

This topic is 4326 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

damn i found a nice post about time based cursor blinking it was a neat little formular whihc i like can anyone tell me how i could do this? something about two timestamps and then calculate the difference or something

Share this post


Link to post
Share on other sites
Advertisement
Something like this? (Pseudocode)
last_time = get_time();
while(1)
{
current_time = get_time();
if((current_time - last_time) > intervall)
{
//turn cursor on/off
last_time = current_time;
}
}

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement