docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ClockHelpers

    ClockHelpers.

    Inheritance
    object
    ClockHelpers
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro.Foundation
    Assembly: Unity.SimulationPro.Foundation.dll
    Syntax
    public static class ClockHelpers

    Fields

    DefaultClockTopic

    The DefaultClockTopic.

    Declaration
    public const string DefaultClockTopic = "/clock"
    Field Value
    Type Description
    string

    Methods

    ConstructTimeMsg(double)

    ConstructTimeMsg method.

    Declaration
    public static TimeMsg ConstructTimeMsg(double timeInSeconds)
    Parameters
    Type Name Description
    double timeInSeconds

    The timeInSeconds.

    Returns
    Type Description
    TimeMsg

    The result.

    Now()

    Now method.

    Declaration
    public static TimeMsg Now()
    Returns
    Type Description
    TimeMsg

    The result.

    ToSeconds(TimeMsg)

    ToSeconds method.

    Declaration
    public static double ToSeconds(this TimeMsg timeMessage)
    Parameters
    Type Name Description
    TimeMsg timeMessage

    The timeMessage.

    Returns
    Type Description
    double

    The computed value.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)