Unity Engine documentation Script Reference Unity.IntegerTime RationalTime Data type that represents time as an integer count of a rational number.
Read time 1 minute
Last updated 11 days ago Definition
public struct RationalTime
Properties
Property Description Count Returns the number of ticks. Ticks Returns the number of ticks per second.
Static Methods
Method Description FromDouble Converts a floating point number into a RationalTime with an explicit rate.
Operators
Operator Description DiscreteTime Converts a RationalTime to DiscreteTime representation. If the rate denominator is 1 and the DiscreteTime.TicksPerSecond is a multiple of the numerator, this conversion is lossless.
Structs
Struct Description RationalTime.TicksPerSecond The number of ticks per second ( rate ) of the discrete time, expressed as a rational number.