Skip to main content

A simple timer to measure task durations.

Project description

Simple Timer Plus

Simple Timer Plus is a Python package for measuring the time spent on tasks or code execution.

Installation

Use the package manager pip to install Simple Timer:

pip install simple-timer

Usage

Here's how to use the Simple Timer:

from simple_timer import SimpleTimer
import time

timer = SimpleTimer()

timer.start()
# Perform some tasks
time.sleep(3)
timer.pause()
timer.show_elapsed_time()  # Output: Elapsed time: 00:00:03

Features

  • Start, pause, resume, and reset the timer.
  • Get the elapsed time in hours, minutes, and seconds.

Author

Orlando Gomes

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_timer_plus-0.0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

simple_timer_plus-0.0.1-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page