ElliottD1 / TimerPIP

A simple Timer Package for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Easy To Use Timer!

Installation

Use pip to install:

pip install GiraffeTimer
  • timer.timer(minutes,seconds)= Counts down the amount of time put in to the parameters before ending.

  • Print Timer: timer.ptimer(minutes,seconds)= prints seconds inputted into parameters. Same as Timer but prints seconds.

  • StopWatch: timer.swatch()= Returns the amount of time taken before finishing an action.

Examples

from Timers import timer
timer.timer(1,20)
#Counts down for 1 minutes and 20 seconds

timer.ptimer(1,20)
#counts down and prints for 1minute and 20 seconds

timer.swatch()
#waits for user action

License

MIT

This is my first Python Package and I made this just to practice not to truly use as a package. Hope you enjoy!

About

A simple Timer Package for Python

License:MIT License


Languages

Language:Python 100.0%