function TriggerMe_InSeconds(){
  var X = 20
  var Y = 20
  var numIterations = 2; // Number of iterations before reaching time limit (change accordingly)
  for (var i = 0; i < numIterations; i++) {
    // Your actions
    TriggerMe()
    Utilities.sleep(1000 * X); // Pause execution for X seconds
  }
}