Skip to main content

Deltatiming

A lightweight library for handling deltatime.

Installation

pip install deltatiming

Usage

from deltatiming import Deltatime
dt = Deltatime()
dt.tick()
print('Estimated framerate: '+str(dt.get_framerate()))

Available functions

Deltatime.tick()

Needed to be called before Deltatime.get_delta() and Deltatime.get_framerate()

Deltatime.get_delta()

Gets time after last tick() call.

Deltatime.set_time_scale(value)

Sets time multiplier. Useful for speeding up/slowing down the whole script if the whole script uses deltatime.

Deltatime.get_time_scale()

Returns current time scale.

Deltatime.get_framerate(use_time_scale: bool)

Returns current framerate based on delta time. use_time_scale defaults to False

License

MIT

Metadata

Release files for deltatiming 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deltatiming 0.1.1
File Size Uploaded
deltatiming-0.1.1.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deltatiming 0.1.1
File Interpreter ABI Platform
deltatiming-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / deltatiming-0.1.1.tar.gz

Download URL deltatiming-0.1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
008e5452849036154e088055d4733b056cf76dca9d70341efed8ea97253afa21
BLAKE2b-256 checksum
How to use checksums
008a5b9e0eb1834ce4c751c0051df00f4c7b1f004c39bb30d1a9d5e416072a4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.1

Release files / deltatiming-0.1.1-py3-none-any.whl

Download URL deltatiming-0.1.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
522264e7245f4353e0da57a0659126d8b45d367bd13b81908700f1ab5a362a8b
BLAKE2b-256 checksum
How to use checksums
fde97057c851c1d4a3b059b56f4e775c0a099bd590c1891790ee01f84d780d95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.1

Release history Release notifications | RSS feed

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page