Exemple #1
0
        public void mediatime()
        {
            string tc = "00:41:01.40";

            Console.WriteLine("source [" + tc + "]");

            MediaTime mt = new MediaTime(tc);

            Console.WriteLine("result [" + mt.hour + ":" + mt.minute + ":" + mt.second + "." + mt.millisecond + "]");
            double d1 = mt.ToSeconds();

            Console.WriteLine(d1);
        }
Exemple #2
0
 static public double GetDuration(MediaTime start, MediaTime end)
 {
     return(end.ToSeconds() - start.ToSeconds());
 }