string l_Time = string.Format("{0} s", TimeSpan.FromMilliseconds(154820).TotalSeconds.ToString()); //154.82 s //https://www.tutorialspoint.com/compile_csharp_online.php