Miscellany
public text v1 · immutable// Elapsed Time
// Keep rollover in mind and /4 cause the value is transmitted in 0.25s
int time = response.messageContents[3] / 4;
if (roundtime && time < 10)
{
itime += 64;
roundtime = false;
} // reset boolean
else if (!roundtime && time > 50)
{
roundtime = true;
}
time += itime;
// to timevalue
TimeSpan t = TimeSpan.FromSeconds(time);
timestring = string.Format("{0:D2}:{1:D2}", t.Minutes, t.Seconds);
updateElapsedTime(timestring + " sec");