Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(c *Clock)
func WithTick ¶
WithTick sets the time-step for thes simulation clock. This is effectively precision with which the resulting clock is able to measure time. A smaller time-step is more CPU-efficient. If d < 0, defaults to millisecond precision.
There is a trade-off between performance and precision such that a larger tick interval will reduce the load on the CPU when there are many events in the clock, at the expense of a
Click to show internal directories.
Click to hide internal directories.