Skip to main content

No project description provided

Project description

ChronoKit

A stopwatch/timer utillity

Installation

pip install chronokit

Importing

from chronokit import *

Functions

stopwatch("START")
wait(1000)
stopwatch("STOP")
from_start()

Usage

stopwatch()

The function stopwatch() takes one argument: "START" or "STOP". "START" starts the stopwatch and "STOP" stops it and returns how many milliseconds has elapsed since you started the stopwatch using stopwatch("START"). "START" works with any capitalization:

stopwatch("StaRt")
stopwatch("start")
stopwatch("Start")
stopwatch("StOP")
stopwatch("stop")
stopwatch("Stop")

wait()

The function wait() takes one argument: the amout of time to wait in milliseconds.

wait(1000)

from_start()

The function from_start() doesn't take any arguments. When you call the function, it returns the time elapsed since the module was imported

from_start()

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

ticktools-1.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ticktools-1.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file ticktools-1.0.1.tar.gz.

File metadata

  • Download URL: ticktools-1.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for ticktools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a22d11828397a53d451e5b3a4b5cd70d55b7f766583dcc3d75d4c8f426b89ccd
MD5 2da28d1af229b49df034328072d17fb1
BLAKE2b-256 82ae68fcf91bc0fb15848d6b8cdca18a5968116db7bd6ac2ff6862011163b9f6

See more details on using hashes here.

File details

Details for the file ticktools-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ticktools-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for ticktools-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd8417e96ac0bf518371a33adfc9655658b0cc958e7ca5b54469203d5229b43c
MD5 d4b1837ff76cef84285cce88906d2ce4
BLAKE2b-256 5fd2b353551eece75e2ea4cf79546848f35440285040234d11d53ad7cf6dc887

See more details on using hashes here.

Supported by

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