46 packages tagged with “duration”
The library provides support for capturing: Gauges, Counters, Meters, Histograms and Timers
A small library to handle ISO8601 durations (e.g. P1Y for 1 year, PT2H30M for 2 hours and 30 minutes) in C#.
Google Places, Maps, Roads, Search and Translate. Requests and Responses are complete with Google api documentation and references.
The library provides support for integrating Owin with the Metrics.NET Library
Get video information for .NET (wrapper for ffprobe tool). Provides details about file media streams: format, codecs, video resolution and frame rate, duration, custom tags etc. NReco.VideoInfo nuget can be used for free in non-SaaS apps that have only one single-server production deployment. This nuget package includes ffprobe.exe (it is extracted on the first use automatically - you don't need to deploy ffprobe separately) and therefore can be used only on Windows. For cross-platform deployments NReco.VideoInfo.LT nuget should be used instead. How to use: var ffProbe = new NReco.VideoInfo.FFProbe(); var videoInfo = ffProbe.GetMediaInfo(pathToVideoFileOrUrl); Console.WriteLine(videoInfo.FormatName); Console.WriteLine(videoInfo.Duration); More info and online demo: https://www.nrecosite.com/video_info_net.aspx
It is well known that DateTime.Now is often used inappropriately. For example, it may be used together with TimeSpan to produce a task's timeout point or subtracted from another DateTime to calculate a duration. This can cause subtle bugs because DateTime is not monotonic: the system clock can change, making the result of the subtraction inaccurate -- potentially causing a premature timeout or an infinite loop. Yet, DateTime is an incredibly convenient and widely used value type in .NET code and is especially useful when printed in ISO-8601 format (with the "O" format specifier). With the "O" specifier, you can resolution down to tenths of a microsecond, which is nice. Until you learn that the resolution of the system clock is usually more coarse than several *milliseconds*, making the additional decimal places misleading garbage values. For calculating durations (time between events), it is better to use a high-resolution and monotonic clock like that provided by System.Diagnostics.Stopwatch: on most computers it is far more **accurate** than DateTime.Now even though, seemingly paradoxically, on a few systems, its *resolution* is lower than that of DateTime. Also, unsurprisingly, Stopwatch does not provide values that correlate to times of day: while it is appropriate for calculating durations, it is inappropriate for timestamping against a readable date and time. This library provides timestamps (both as DateTime and as analogous value types it defines) that use the Stopwatch (and your system's high peformance event counter) as its clock, but returns values as DateTimes or an analog thereto so that these values can be used for a mixed purpose of timestamping and providing a meaningful way to calculate time elapsed between events or to calculate how long to perform a programmatic task.
Get video information for .NET (wrapper for ffprobe tool). Provides details about file media streams: format, codecs, video resolution and frame rate, duration, custom tags etc. This LT-version nuget package does NOT include ffprobe.exe and is suitable for cross-platform deployments (Windows, Linux/Docker, Mac-OS) or using a ffprobe build/version of your choice. NReco.VideoInfo.LT nuget can be used for free in non-SaaS apps that have only one single-server production deployment. How to use: var ffProbe = new NReco.VideoInfo.FFProbe(); ffProbe.FFProbeExeName = "ffprobe.exe"; // just "ffprobe" for Linux/OS-X ffProbe.ToolPath = "<path_to_folder_with_ffprobe>"; var videoInfo = ffProbe.GetMediaInfo(pathToVideoFile); More info and online demo: https://www.nrecosite.com/video_info_net.aspx
This library provides support for InfluxDB reporters in the Metrics.NET monitoring and reporting library. Supports InfluxDB Line Protocol for InfluxDB v0.9.1 and above, and JSON Protocol for InfluxDB v0.9.1 and below.
Multiple extension methods to handle and calculate date and time based data
Library to extend the functionality of the TimeSpan structure to be comparable, serializable, and convertible. It also supports localized string formatting and parsing so a TimeSpan can be represented by something like "3 days, 2 hours, 19 minutes" instead of "3:02:19:00".
Adds Duration units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.
This library extends Metrics.NET with Graphite reporting capabilities
Normalizes a Duration Pattern. Converts a Duration Pattern into a TimeSpan or DurationStruct. Converts a DurationStruct into a TimeSpan or Duration Pattern. Converts a TimeSpan into a DurationStruct or Duration Pattern. Works with a DurationStruct easily instead of use TimeSpan that not covers Years and Months.
The library provides support for integrating Nancy with the Metrics.NET Library
(Legacy .NET 4.0 Version) The library provides support for capturing: Gauges, Counters, Meters, Histograms and Timers
DEPRECATED, This packages has been renamed Nancy.Metrics
The library provides support for integrating Log4Net with the Metrics.NET Library
C# library for calculating intervals and the duration between days, weeks, fortnights, bimonthly, months, quarters and years
Easy to plugin library for tracing most common problems when building a Blazor application like unnecessary renders, memory leaks, slow components
This library extends Metrics.NET with ElasticSearch reporting capabilities
(Legacy .NET 4.0 Version) The library provides support for integrating NancyFx with the Metrics.NET Library
Duration parser which return a timespan
A simple package to deal with datetime ranges operations.
Additional primitive types such as Money, Currency, Country, Duration, Keygen, Etag, Ksuid, Language, SequenceNumber, ByteSize, etc
Provides a set of helpful extension methods and other bits allowing for more convenient usage approaching the Google.Protobuf package.
Human friendly, textual representations of TimeSpan and file size using standard .NET types. It is light-weight, tested and supports PCL.
The library provides support for Prometheus Reporting in Metrics.NET
C# Library & Extension methods
This library extends Metrics.NET with RabbitMQ reporting capabilities