Skip to main content

Takes a baseline delay value, a percentage to calculate the min/max for allowed jitter values, and a desired precision; returns a float.

Project description

jitt

simple jitter tool

Takes a baseline delay value, a percentage to calculate the min/max for allowed jitter values, and a desired precision; returns a float.

Installation

pip install jitt
python3 -m pip install jitt

Usage

from jitt import Jitt
j = Jitt(delay=10.5, percent=25, precision=3).jitter
print(j)

# misc results for above values (min: 7.875 / max: 13.125)
# 8.177
# 12.975
# 10.565
# 9.022
# 11.43 (trailing zero is truncated)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jitt-0.1.0.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

jitt-0.1.0-py3-none-any.whl (2.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page