Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created September 4, 2018 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save explorer14/67ae16f32586cfe5f0cbdd89bdd1dafe to your computer and use it in GitHub Desktop.
Save explorer14/67ae16f32586cfe5f0cbdd89bdd1dafe to your computer and use it in GitHub Desktop.
public async Task PeriodCloseReport()
{
Stopwatch stopwatch = Stopwatch.StartNew();
var items = await this.periodService.PeriodCloseReportAsync();
stopwatch.Stop();
Log.Logger.Information(
$"Method {nameof(IPeriodService.PeriodCloseReportAsync)} took {stopwatch.Elapsed.ToString()} to execute");
//.. return the result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment