sleep method

void sleep(
  1. int _wTime
)

from punch/tools/signal simple sleep method

Implementation

void sleep(int _wTime) {
  var gTime = DateTime.now().add(new Duration(milliseconds: _wTime));
  do {} while (new DateTime.now().compareTo(gTime) < 0);
}