Skip to main content

Deltatiming

Deltatiming is a library for making 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

Metadata

Release files for deltatiming 0.1.0

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.0
File Size Uploaded
deltatiming-0.1.0.tar.gz 2.7 kB Details

Built distribution (wheel)

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

Total release size: 5.7 kB

Release files / deltatiming-0.1.0.tar.gz

Download URL deltatiming-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
98ac09f1c52f3ddc95768fe86a0bc23c50963f9f1cb6f1bcd02f920b55ce590a
BLAKE2b-256 checksum
How to use checksums
57244234b62949e5dbebdb66bb9ad28eb6973c99863d519aaa1045a03c169e47
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.0-py3-none-any.whl

Download URL deltatiming-0.1.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69de335436082637ac44dc0096b1d36416cd35788898292c629955165c25c06b
BLAKE2b-256 checksum
How to use checksums
1f5deb6b1f53224cdce807e124a745d36fc24b0f42cc91b1dc0e663090765762
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

0.1.1

2 release files

This release

0.1.0 This release

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