Arduino delays get shorter over time

TERMINAL:
the whole program atm. is just digitalRead, Serial.write and delay

In which case, it sounds like you need to do some factoring.