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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deltatiming-0.1.2.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deltatiming-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / deltatiming-0.1.2.tar.gz
| Download URL | deltatiming-0.1.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b7b7f34c34a61202c3164d848b5d4ea189a2ac1040f91946d4b5209f1be8379
|
|
BLAKE2b-256 checksum How to use checksums |
1ff009ae27ee62e197942b65136606013506c115b7838f2baa51d220bc23b353
|
| 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.2-py3-none-any.whl
| Download URL | deltatiming-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caa5ea9a6af77a7dc348e3ea703d7058bbc3c52f5f609c3173b5c8ee8d0358ee
|
|
BLAKE2b-256 checksum How to use checksums |
da6a21bd69feb502b5e9e4f7415b7bbeb700f20e2a8c959fa92236ad5e5c9605
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.1
|