Skip to content

Commit 9b09996

Browse files
Update README.md
1 parent b08e3b2 commit 9b09996

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ And then after running with enabled Profile you'll see:
110110
### 🫡 Reset Timer
111111

112112
```csharp
113-
using (_timer.Measure("Name of Sample")) HeavyMethod();
113+
using (_timer.Measure())
114+
{
115+
// Here you can call any methods you want to measure
116+
HeavyMethod();
117+
}
114118

115119
if (_timer.State.countOfCalling == 1000) _timer.Reset();
116120
```
@@ -128,4 +132,4 @@ Result:
128132
## 📄 License
129133

130134
This project is licensed under the **MIT License**.
131-
See the [LICENSE.md](LICENSE.md) file for full terms.
135+
See the [LICENSE.md](LICENSE.md) file for full terms.

0 commit comments

Comments
 (0)