0.0
No commit activity in last 3 years
No release in over 3 years
Library to track and display bandwith usage inside the application
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Speedometer

Gem Version

Simple library used to track,calculate and display upload speed of an application.

It's used in my other project - https://github.com/tdobrovolskij/sanguinews

INSTALLATION

Simply invoke gem install:

gem install speedometer

How to use

Methods:

  • new - accepts hash with: units in KB/MB(default)/GB; progressbar - bool
  • start - starts displaying upload rate
  • stop - stop displaying upload rate
  • done(bytesize) - increments uploaded byte counter for progressbar
  • log(message) - you need to use this instead of puts

CREDITS

HISTORY

  • 0.1.3 - Less CPU will be consumed now.
  • 0.1.2 - Log method supports stderr output now.
  • 0.1.1 - Specified ruby version.
  • 0.1.0 - Added progressbar feature. Be careful: upgrade can break code.
  • 0.0.5 - Improved logic. Start possible only once.
  • 0.0.4 - Added start/stop methods
  • 0.0.3 - Basic thread safety added
  • 0.0.2 - Forcing STDOUT.flush after every action
  • 0.0.1 - Initial public release