use diag_tickTime instead of sleep to make timing more reliable
checking the variable is not necessary when using call compile because it is not run on a separate thread
Merge pull request #15 from mudzereli/master

More Reliable Timing / Init Redundancy Fix