function [tRegion] = TimerScript(Time,Reset)

persistent tEntry

if Reset == 1
    tEntry = Time;
end
tRegion = Time - tEntry;