Handling java stopwatch start and stop errors

Thursday, July 10, 2014

as you know if you try .start() an already started stopwatch in the org.apache.commons.lang3 class it crashes saying that it has already started. The same goes for stopping it. Is there any neater way (Other than try catch) to handle this. Kind of like in c# where it just ignores the statement if the stopwatch has already started. I'm also having this problem with the sound effects on the LibGDX framework. Any Ideas? Thanks alot!







http://ift.tt/1rXK5lh