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.189 -- Release Build+f18be3298deb6f1d6a1aa9db365605e74583d8b3
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