An open API service indexing awesome lists of open source software.

https://github.com/aimenux/measureexecutiontimedemo

Using various ways to measure execution time
https://github.com/aimenux/measureexecutiontimedemo

console-app fody measure-time net80 stopwatch

Last synced: about 2 months ago
JSON representation

Using various ways to measure execution time

Awesome Lists containing this project

README

          

[![.NET](https://github.com/aimenux/MeasureExecutionTimeDemo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/aimenux/MeasureExecutionTimeDemo/actions/workflows/ci.yml)

# MeasureExecutionTimeDemo
```
Using various ways to measure execution time
```

In this repo, i m using various ways to measure method execution time.

>
> - `UsingStopWatch` is using [StopWatch](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.stopwatch)
>
> - `UsingEfficientStopWatch` is using a [memory efficient StopWatch](https://github.com/dotnet/runtime/issues/65858)
>
> - `UsingTimeProvider` is using a [TimeProvider](https://learn.microsoft.com/fr-fr/dotnet/api/system.timeprovider)
>
> - `UsingMethodTimerFody` is using [Fody](https://github.com/Fody/MethodTimer)
>

**`Tools`** : net 8.0, fody