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