Skip to main content

No project description provided

Project description

ChronoKit

A stopwatch/timer utillity

Installation

pip install ticktools

Importing

from chronokit import *

Usage

stopwatch

start()

The function start() in the class stopwatch takes no arguments. It starts the stopwatch.

stopwatch.start()

stop()

The function stop() in the class stopwatch takes no arguments. It stops the stopwatch.

stopwatch.stop()

resume()

The function resume() in the class stopwatch takes no arguments. It resumes the timer once it was stopped.

stopwatch.resume()

lap()

The function lap() in the class stopwatch takes no arguments. It makes a lap.

stopwatch.lap()

returntime()

The function returntime() in the class stopwatch takes no arguments. It returns the time the stopwatch has run.

time = stopwatch.returntime()

returnlaps()

The function returnlaps() in the class stopwatch takes no arguments. It returns the laps in list format.

laps = stopwatch.returnlaps()

reset()

The function reset() in the class stopwatch takes no arguments. It resets the stopwatch.

stopwatch.start()
wait(2000)
stopwatch.reset() #Works even when stopwatch is running
wait(1000)
stopwatch.stop()
stopwatch.reset() #Also works when stopwatch has been stopped

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.2.1.tar.gz (1.6 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.2.1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ticktools-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a812833b920d52c84b6ded5deaa69eef999cf29dfd40ea679e6914f79b841bb2
MD5 5833046172a6e6d7031c4b410b77ee9b
BLAKE2b-256 7f946fd43d73d9e309fdbf0373eba118db2c8d16a1a06af47a4dc939978d44eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ticktools-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cfc580db9231f1d5045387b1482286d19c0e9551b8a0dfa596072c8453775fe
MD5 56fa38286345086bc838a28e13988b74
BLAKE2b-256 6f768ab3c410244b31f514a469b0b50d0995e23ad7c1845a45605f570e6dcff4

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