CalculateETA 3.0.2

dotnet add package CalculateETA --version 3.0.2                
NuGet\Install-Package CalculateETA -Version 3.0.2                
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="CalculateETA" Version="3.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CalculateETA --version 3.0.2                
#r "nuget: CalculateETA, 3.0.2"                
#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 CalculateETA as a Cake Addin
#addin nuget:?package=CalculateETA&version=3.0.2

// Install CalculateETA as a Cake Tool
#tool nuget:?package=CalculateETA&version=3.0.2                

CalculateETA

CalculateETA CalculateETA License

CalculateETA is a project to calculate estimated time to arrive on loops whether it is in single-thread or multi-thread applications.

CalculateETA

How to download

Release: Latest release

Download on NuGet gallery

.NET CLI:

dotnet add package CalculateETA

Description

CalculateETA has methods to calculate estimated time to finish on the loops. It calculates left count of the iteration and avarage passed time on the loop then multiply left count with avarage passed time. On multi-thread applications, it has internal counter that increases everytime methods are called. With using counter calculating left count of the loop and avarage passed time on the loop then multiply left count with avarage passed time.

CalculateETA is optimized for CPU-intense applications which methods are named Unsafe as suffix such as CalcUnsafe() and NameETAUnsafe()

Example Usage

string CalcSTCPUIntense(int? index, int? totalIndex, double? totalElapsedTimeInMs)
{
    return NameETAUnsafe(CalcETAUnsafe(index, totalIndex, totalElapsedTimeInMs));
}
string CalcSTBetterVisual(int? index, int? totalIndex, double? totalElapsedTimeInMs)
{
    return NameETABetterVisual(CalcETA(index, totalIndex, totalElapsedTimeInMs));
}
string CalcMultiThread(uint? totalIndex, long? totalElapsedTicks)
{
    return NameETA(CalcETAHighDense(totalIndex, totalElapsedTicks));
}

Reporting

// Getting instance of Reporting().
Reporting reporting = new Reporting();

// Calculating ETA
long? calcResult = CalcETA(index: i, totalIndex: total, timeSpan: sw.Elapsed);

// Adding result.
reporting.AddReport(calcResult);

[!TIP] To save reporting result easily, you can use EasySaver.TextFile.

dotnet add package EasySaver.TextFile

To check listed methods, example of output visit wiki page. CalculateETA Wiki

Version History

See Changelog

Task list

  • Create an issue or check task list: Issues

Licence

This repository is licensed under the "MIT" license. See MIT license.

Authors & Contributing

If you'd like to contribute, then contribute. contributing guide.

Contributors

Help

Twitter: Enes Okullu @enesokullu

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

v3.0.2
     Removed unused usings and code cleanup.
     See changelog (https://github.com/meokullu/CalculateETA/blob/master/CHANGELOG.md)