sleep method
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);
}
from punch/tools/signal simple sleep method
void sleep(int _wTime) {
var gTime = DateTime.now().add(new Duration(milliseconds: _wTime));
do {} while (new DateTime.now().compareTo(gTime) < 0);
}