codetimer 0.0.12
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package codetimer --version 0.0.12
NuGet\Install-Package codetimer -Version 0.0.12
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="codetimer" Version="0.0.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add codetimer --version 0.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: codetimer, 0.0.12"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install codetimer as a Cake Addin #addin nuget:?package=codetimer&version=0.0.12 // Install codetimer as a Cake Tool #tool nuget:?package=codetimer&version=0.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
code-timer
CodeTimer provides a standardized way to time the end-to-end cost, and the contribution of individual code segments within a method.
Installation
npm install code-timer --save
Usage example
public List<Blah> DoSomething() {
var timer = new CodeTimer("DoSomething", logger);
var data = MakeDatabaseCall();
timer.Mark("Get initial data");
myWebService.CallSomething(data.Id);
timer.Mark("Updated backend service");
var coll = new List<Blah>();
foreach(var foo in data.Bars) {
coll.Add(foo.Blah);
}
timer.Mark("Created list of Blah's");
// Stops the timer and logs the result
// Logs as Error if (Success == false)
timer.Complete();
return coll;
}
Meta
Darren Neimke – @digory
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/dneimke/code-timer/blob/master/LICENSE
Contributing
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.0
- Microsoft.Extensions.Logging (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.48 | 1,002 | 9/17/2018 |
0.0.47 | 810 | 9/17/2018 |
0.0.45 | 2,353 | 10/30/2017 |
0.0.44 | 897 | 10/30/2017 |
0.0.43 | 903 | 10/28/2017 |
0.0.41 | 937 | 10/27/2017 |
0.0.40 | 924 | 10/24/2017 |
0.0.39 | 903 | 10/24/2017 |
0.0.38 | 935 | 10/24/2017 |
0.0.37 | 1,005 | 10/23/2017 |
0.0.36 | 915 | 10/23/2017 |
0.0.34 | 919 | 10/23/2017 |
0.0.33 | 903 | 10/23/2017 |
0.0.16 | 910 | 10/22/2017 |
0.0.14 | 893 | 10/21/2017 |
0.0.12 | 1,024 | 10/20/2017 |