Examples · learn/12-units · 183 of 339
frequency
tin run examples/learn/12-units/frequency.tinfn main() {
let rate = 50Hz // a Frequency
print(rate)
print(1 / rate) // the time between two ticks: a Duration
print(1 / 20ms) // and back: a Frequency
print(2s * rate) // Duration × Frequency is a plain number of ticks
}