Tuesday, February 7, 2017

c# - How to have an event occur after x seconds?


I want a method to run after every 10 or 15 seconds.



My timer is set to:


timer = (double) gameTime.ElapsedGameTime.TotalSeconds;

What would be the logic to check for every 10 or 15 seconds?




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...