Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RationalTime

Data type that represents time as an integer count of a rational number.
Read time 1 minuteLast updated 5 days ago

Definition

public struct RationalTime

Properties

Property

Description

CountReturns the number of ticks.
TicksReturns the number of ticks per second.

Static Methods

Method

Description

FromDoubleConverts a floating point number into a RationalTime with an explicit rate.

Operators

Operator

Description

DiscreteTimeConverts 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.TicksPerSecondThe number of ticks per second ( rate ) of the discrete time, expressed as a rational number.