Skip to content

Commit

Permalink
Merge pull request #68 from meokullu/meokullu-patch-18
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
meokullu authored Feb 15, 2024
2 parents 323696e + 9f7dbbd commit d9a722f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,22 @@ CalculateETA is a project to calculate estimated time to arrive on loops whether

### Description

CalculateETA has methods to calculate estimated time to finish on loops. It calculates left count of iteration and multiply it with avarage passed time on the loop. On multi-thread applications, it has internal counter that increases everytime methods works via using that calculating left count of loop and multiply it with avarage passed time on the loop.
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.
CalculateETA is optimized for CPU-intense applications which methods are named Unsafe as suffix such as CalcUnsafe() and NameETAUnsafe().

### Example Usage

```
public string CalcSTCPUIntense(int? index, int? totalIndex, double? totalElapsedTimeInMs)
{
return NameETAUnsafe(CalcETAUnsafe(index, totalIndex, totalElapsedTimeInMs));
}
```
```
public string CalcSingleThread(int? index, int? totalIndex, double? totalElapsedTimeInMs)
public string CalcSTBetterVisual(int? index, int? totalIndex, double? totalElapsedTimeInMs)
{
return NameETA(CalcETA(index, totalIndex, totalElapsedTimeInMs));
return NameETABetterVisual(CalcETA(index, totalIndex, totalElapsedTimeInMs));
}
```
```
Expand Down Expand Up @@ -45,4 +52,4 @@ If you'd like to contribute, then contribute. [contributing guide](https://githu
[![Contributors](https://contrib.rocks/image?repo=meokullu/CalculateETA)](https://github.com/meokullu/CalculateETA/graphs/contributors)

### Help
Twitter: Enes Okullu [@enesokullu](https://twitter.com/EnesOkullu)
Twitter: Enes Okullu [@enesokullu](https://twitter.com/EnesOkullu)

0 comments on commit d9a722f

Please sign in to comment.