function [tRegion] =TimerScript(Time, Reset)
persistent tEntry

if Time <0.1
    tEntry=0;
end
if Reset == 1
    tEntry = Time
end

tRegion = Time - tEntry;
