def get_sec(time): #helper function to convert serial output time string into int, just for testing convenience
    """Get Seconds from time."""
    time = str(time)[2:-1]
    h, m, s = str(time).split(':')
    ts = int(h) * 3600 + int(m) * 60 + float(s)
    return ts