https://github.com/mathieumack/tooling.net.watchmeasurement
Measurement tool that allow you to log measures in your application
https://github.com/mathieumack/tooling.net.watchmeasurement
Last synced: about 2 months ago
JSON representation
Measurement tool that allow you to log measures in your application
- Host: GitHub
- URL: https://github.com/mathieumack/tooling.net.watchmeasurement
- Owner: mathieumack
- License: mit
- Created: 2017-12-11T16:06:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-15T12:38:23.000Z (over 8 years ago)
- Last Synced: 2025-03-02T22:35:31.223Z (over 1 year ago)
- Language: C#
- Size: 462 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tooling.Net.WatchMeasurement
This repository contains a simple tool that let you measure some code execution time, and execute an action at the end of the execution.
## Build
[](https://ci.appveyor.com/project/mathieumack/tooling-net-watchmeasurement)
## Nuget
[](https://nuget.org/packages/Tooling.Net.WatchMeasuremen)
### Nuget Installation
Install [WatchMeasurement](https://www.nuget.org/packages/Tooling.Net.WatchMeasurement/) from nuget.
## Please Contribute!
This is an open source project that welcomes contributions/suggestions/bug reports from those who use it.
If you have any ideas on how to improve the library, please [post an issue here on github](https://github.com/mathieumack/Tooling.Net.WatchMeasuremen/issues).
# Example
## Enable the measurement api
By default, the measurement api is disabled in order to reduce impact of performances in your application.
You can enable or disable by changing the boolean field : MeasurementAction.IsEnabled
```c#
MeasurementAction.IsEnabled = true;
```
## How to use it ?
Using the name of the database and the folder on the client device where to store database files:
```c#
using (var measure = MeasurementAction.StartMeasure(watch =>
{
// Do your action here.
// It will be called at the end of the using statement
}, true))
{
// Do your measurement code statements here
}
```
Enjoy !