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.187 -- Release Build+c9c1088b6e2a65c4a6e6b8eccc6dcbe1c00bd580
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