string[] splitedTime = logTime.Split('.');
int.TryParse(splitedTime[0], out hh);
int.TryParse(splitedTime[1], out mm);
var ts = new TimeSpan(hh, mm, 0);
ts = new TimeSpan(9, 59, 0);
ts = TimeSpan.FromSeconds(60 * Math.Ceiling(ts.TotalSeconds / 60));
Console.WriteLine(ts.ToString());
Console.WriteLine((int)ts.TotalSeconds);