SimulatedTimestampGeneratorAlignToFrameRate Method

Floor-aligns timestamp to the sub-second distribution of frameRate.

Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.188 -- Release Build+ec002b8b48825173d2bc841c82bc229f7f02dccd
public static Ticks AlignToFrameRate(
	Ticks timestamp,
	int frameRate
)

Parameters

timestamp  Ticks
Timestamp to align.
frameRate  Int32
Frame rate, in frames per second.

Return Value

Ticks
Aligned timestamp.

Remarks

Frame rates up to MaximumMillisecondFrameRate use millisecond alignment, unchanged from prior behavior, see AlignToMillisecondDistribution(Ticks, Int32). Higher frame rates align at full tick resolution so that every frame slot remains distinct.

See Also