question: void addWaitStatement ( ) { if ( isRecording ( ) ) { long t = System . currentTimeMillis ( ) ; long d = t - waitTimer ; generatedCode += "        waitFor(" + d + ");\n" ; waitTimer = t ; } }
target:  Adds a wait to simulate user delay