A MIDI Library for .NET

Clock.Time Property

This clock's current time in beats.

public float Time { public get; }

Remarks

Normally, this method polls the clock's current time, and thus changes from moment to moment as long as the clock is running. However, when called from the scheduler thread (that is, from a Message.SendNow method or a CallbackMessage), it returns the precise time at which the message was scheduled.

For example, suppose a callback was scheduled for time T, and the scheduler managed to call that callback at time T+delta. In the callback, Time will return T for the duration of the callback. In any other thread, Time would return approximately T+delta.

See Also

Clock Class | Midi Namespace