private async Task TestAsync()
 {
     await Task.Run(() =>
     {
         var t = PFDataHelper.CountTime(() =>
         {
             Thread.Sleep(5000);
         });
         AppendResult(string.Format("task finish {0}", PFDataHelper.GetTimeSpan(t)));
     });
 }
        private Task TestTask()
        {
            var rt = new Task(() =>
            {
                var t = PFDataHelper.CountTime(() =>
                {
                    Thread.Sleep(5000);
                });
                AppendResult(string.Format("task finish {0}", PFDataHelper.GetTimeSpan(t)));
            });

            rt.Start();
            return(rt);
        }
        private async Task <bool> IsTestAsync()
        {
            var b = false;
            await Task.Run(() =>
            {
                var t = PFDataHelper.CountTime(() =>
                {
                    Thread.Sleep(5000);
                });
                AppendResult(string.Format("task finish {0}", PFDataHelper.GetTimeSpan(t)));
                b = true;
            });

            return(b);
        }