Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: C#
Posted by: PAVEL MILOVANOV
Added: Nov 16, 2020 5:11 PM
Modified: Nov 16, 2020 5:12 PM
Views: 10
Tags: no tags
  1. var now = DateTime.Now;
  2. var sinceInit = (now - _initTime).TotalSeconds;
  3. var sinceLoading = (now - _startLoadingTime).TotalSeconds;
  4.  
  5. this.Log($"+++[{now:HH:mm:ss}] SetProgress({value}) sinceInit={sinceInit:f2}, sinceLoading={sinceLoading:f2}"); //2del