It may be helpful if you tell us what you want to display this information on is it an HMI or some Scada system or DB logging ?.
As others have sort of stated, to decipher the data then you need to be able to split them into the following Alarm stoppage (pretty simple any alarm & machine stopped), changeover (again pretty simple but it would probably need some form of initiation i.e. either a maintenance mode or operator selection to know it is in changeover). Stopped time again pretty simple just no alarms & stopped.
Examples for holding information would be registers for each i.e.
Stopped time
Run time
Alarm time
Changeover time
Simply just increment a register(s) for each of the above i.e. format could be HH:MM:SS (3 registers per field).
I don't think you need high accuracy especially if these are regularly reset say on a shift basis or weekly basis, another thing is to store perhaps the last 10 times for each of the above just for a bit of history to look back on, if you are looking for longer & more detailed analysis then logging to an SQL database is what you want or even csv files perhaps on a PC.
Some HMI's can store information on a memory card in csv format this could be copied & loaded into say a spreadsheet.