Help on improving code : Looting coins

If you want to time how long things are taking, don’t put this.say() into your code; just open up the JS console and look at the log statement it outputs for how long it took to simulate the match. Of course it’s counting time, not statements, and it’ll only be relevant against the same opponent with the same computer with the same general outcome of the match, but it does do that much timing for you.

|Ra's Krieger| And it was so: (27.932ms per frame, 923 frames)
Simulation   : 25781ms 
Serialization: 683ms
Delivery     : 241ms

You can also see how many statements you used by typing this into the JS console:

currentView.tome.spellView.spellThang.castAether.metrics.statementsExecuted
// 905156
3 Likes