holgerbrandl / kalasim

Discrete Event Simulator
https://www.kalasim.org/
MIT License
68 stars 10 forks source link

Add support for DurationUnit in distributions #56

Closed holgerbrandl closed 9 months ago

holgerbrandl commented 2 years ago

To remove any doubt about what time unit is about to samples we could potentially add more support API using kotlin.time.DurationUnit

val waitingTimeDist = exponential<Seconds>(30)

or similar.