About The Project
ETA aims to be a simple, easy to use, and efficient library for tracking progress on repetitive tasks. The main purpose of ETA is to measure remaining time, but it's being develop to include progress tracking and progress bar display too.
Built With
Getting started
Add this to your Cargo.toml:
eta = "0.2.2"
Add this to your source code:
use ;
Usage
Usage is revolved around the Eta Object which implements a number of functions.
Initialize Eta in two ways:
- with
new(TasksCount, TimeAccuracy)function whereTasksCountis the number of tasks you want to track andTimeAccuracyis the accuracy of the time measurement. - with
in_progress(TasksCount, TasksDone, TimeAccuracy)function whereTasksDoneis the number of tasks that have completed.
TimeAccuracy can be one of the following:
TimeAcc::SECTimeAcc::MILLITimeAcc::MICROTimeAcc::NANO
Run step() function on every iteration of your task.
let mut eta = new;
for i in 0..10
For more examples, please refer to the Documentation
Roadmap
- Enable to pause and resume time tracking
- Ability to calculate weight of unequal tasks during development and create more accurate progress and ETA measurement.
- Create more options for formatting output.
- Add tolerance against outlier values.
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributing to this repository is greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Giving the project a star is much appreciated and means a lot! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MPL-2.0 license. See LICENSE.MD for more information.