This seems like it would be a common thing people are doing and I should be able to figure it out. A little help on the brain power and posting so that others can find the answer quicker might not be a bad idea though.
This is my current code which isn’t all that pretty I’m aware. Suggestions of any kind won’t hurt my feelings.
FYI This timer is reset on a daily basis. (Via some separate code.)
PauseTimer (Timer_Conveyor_Stopped_Current); Int_Stop_time_in_Seconds = GetRestartTimer(Timer_Conveyor_Stopped_Current); StopTimer (Timer_Conveyor_Stopped_Current); int_stopped_hours = Int_Stop_time_in_Seconds/3600; numberToString(int_Stopped_Hours,Stopped_Time_String); Stopped_Time_String_Finished= Stopped_Time_String; //has Hours int_stopped_Minutes = (Int_Stop_time_in_Seconds-(int_Stopped_Hours*3600))/60; numberToString(int_Stopped_Minutes,Stopped_Time_String); Stopped_Time_String_Finished= Stopped_Time_String_Finished + ":" + Stopped_Time_String;//has Minutes int_Stopped_Seconds = (Int_Stop_time_in_Seconds-(int_Stopped_Hours*3600)-(int_Stopped_Minutes*60)); numberToString(int_Stopped_Seconds,Stopped_Time_String); Stopped_Time_String_Finished= Stopped_Time_String_Finished + ":" + Stopped_Time_String;//has Seconds //display Stopped_Time_String_Finished by putting in a table element/string shown by display // or even showing "Stopped_Time_String_Finished".
Any Opto-mizations suggested?