title: countdown oder sleep function in google script spreadsheet
body: <p>At first i want to say sorry for my bad english...
  Since 7 days i try to program with google script.
  What i want:
  After 5 min (for example) thecolums/rows A1:B4 (for example) should be erased.
  I want to solve that with der sleep function, but it doesen't works.
  i also doesen't work with a thread. 
  Mybe some of this forum can help me :-)<div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function test(){
    var ss = SpreadsheetApp.getActiveSheet();
    var i=0;
    for(i; i&lt;10; i++){
     if (i=10){
      ss.getRange(3,4,9,1).setValue("");
       }
      else{
    Utilities.sleep(5000);
        }
      }
  }</code></pre>
  </div>
  </div>
  </p>