Program uses 8 bit counter to achieve time with 150us resolution. Time in microseconds is stored in variable Time. When Timer overflows it is reseted.