示例#1
0
        public void WatchApartTest()
        {
            var times = TimeWatcher.WatchApart(
                () =>
            {
                Thread.Sleep(1000);
            },
                () =>
            {
                Thread.Sleep(1000);
            });

            Assert.IsNotNull(times);
            foreach (var time in times)
            {
                Console.WriteLine(time);
            }
        }