SoftTimer library

Dear Balazs

I am new to arduino. I am trying to make an electronic football scoreboard. It is meant to be operated using an LCD screen and five buttons as digital inputs. I have managed to code the LCD side of things but I am having some difficulty coding the timer. Your library seems be the perfect answer to the problems I am having with the timer part of the code.

Attached is flow diagram showing what the LCD screen shows and what the seven segments are suppose to do.

I am basically trying to use four variables:
start_time
match_length
end_time
injury_time

An additional variable called match_stage is used to determine if the match is in first half or first half injury or second half or second half injury or penalties.
I want to drive the timer variables using the following logic:

if match_stage is first half then
start_time = 0
end_time = match_length / 2
set injury_time to user entered value
if injury_time value is greater than 1 then
start_time = injury_time
end_time = 0

At the end of injury count down or if injury_time = 0
match_stage = second half

if match_stage is second half then
start_time = match_length / 2
end_time = match_length
set injury_time to user entered value
if injury_time value is greater than 1 then
start_time = injury_time
end_time = 0

Could you please give me some direction as to how can I use your library to achieve this.

LCD Menu flow diagram w Seven Segment Output.pdf (563 KB)