using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TimespanTest
{
class Program
{
static void Main(string[] args)
{
DateTime A = DateTime.Now;
System.Threading.Thread.Sleep(100);
TimeSpan B = DateTime.Now.Subtract(A);
System.Threading.Thread.Sleep(1000);
TimeSpan C = DateTime.Now.Subtract(A);
TimeSpan D = C.Subtract(B);
Console.WriteLine("{0}", D.ToString());
return ;
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkxpbnE7CnVzaW5nIFN5c3RlbS5UZXh0OwoKbmFtZXNwYWNlIFRpbWVzcGFuVGVzdAp7CiAgICBjbGFzcyBQcm9ncmFtCiAgICB7CiAgICAgICAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgICAgIHsKICAgICAgICAgICAgRGF0ZVRpbWUgQSA9IERhdGVUaW1lLk5vdzsKICAgICAgICAgICAgU3lzdGVtLlRocmVhZGluZy5UaHJlYWQuU2xlZXAoMTAwKTsKCiAgICAgICAgICAgIFRpbWVTcGFuIEIgPSBEYXRlVGltZS5Ob3cuU3VidHJhY3QoQSk7CiAgICAgICAgICAgIFN5c3RlbS5UaHJlYWRpbmcuVGhyZWFkLlNsZWVwKDEwMDApOwogICAgICAgICAgICBUaW1lU3BhbiBDID0gRGF0ZVRpbWUuTm93LlN1YnRyYWN0KEEpOwoKICAgICAgICAgICAgVGltZVNwYW4gRCA9IEMuU3VidHJhY3QoQik7CgogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiezB9IiwgRC5Ub1N0cmluZygpKTsKCiAgICAgICAgICAgIHJldHVybiA7CiAgICAgICAgfQogICAgfQp9Cg==