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.4
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.4.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deltatiming-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / deltatiming-0.1.4.tar.gz
| Download URL | deltatiming-0.1.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3169e1d050bac1f77df7902e362c6878639edb892f2c2450f03e8d3a7bda23f3
|
|
BLAKE2b-256 checksum How to use checksums |
ac7b80065b39192a457f2710047575b08e58bce373eb828bb5ef77759b22da0f
|
| 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.4-py3-none-any.whl
| Download URL | deltatiming-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba4ed22b9bb03c0b91c3ab0fb73ce19875ac24b1fd62782ff799df48f43ef27e
|
|
BLAKE2b-256 checksum How to use checksums |
a09b1929234096f56fc692c2754d57ec3966c067a0f661382ee3c710c2d783d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.1
|