if ((System.currentTimeMillis()-waterAccumulatedSince) >= sleepTime) {
watermark=packet.getLength()+TRANSPORT_HEADER_SIZE;
waterAccumulatedSince=System.currentTimeMillis();
} else {
waitingPackets.add(0,packet);
alarm = new WakeUpThread(sleepTime,this);
watermark=0;
waterAccumulatedSince=0;
waiting=true;
}
}