Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    CompressedTimeSpan Struct

    Namespace: Stride.Animations
    Assembly: Stride.Engine.dll

    [DataSerializer(typeof(CompressedTimeSpanSerializer))]
    public struct CompressedTimeSpan : IComparable, IComparable<CompressedTimeSpan>, IEquatable<CompressedTimeSpan>
    Name Description
    Constructors
    CompressedTimeSpan(Int32)
    Fields
    MaxValue
    MinValue
    TicksPerMillisecond
    TicksPerSecond
    Zero
    Properties
    Ticks
    Methods
    CompareTo(CompressedTimeSpan)
    CompareTo(Object)
    Equals(CompressedTimeSpan)
    Equals(Object)
    FromSeconds(Double)
    GetHashCode()
    ToString()
    Operators
    Addition(CompressedTimeSpan, CompressedTimeSpan)
    Division(CompressedTimeSpan, Int32)
    Division(CompressedTimeSpan, Single)
    Equality(CompressedTimeSpan, CompressedTimeSpan)
    Explicit(TimeSpan to CompressedTimeSpan)
    GreaterThan(CompressedTimeSpan, CompressedTimeSpan)
    GreaterThanOrEqual(CompressedTimeSpan, CompressedTimeSpan)
    Implicit(CompressedTimeSpan to TimeSpan)
    Inequality(CompressedTimeSpan, CompressedTimeSpan)
    LessThan(CompressedTimeSpan, CompressedTimeSpan)
    LessThanOrEqual(CompressedTimeSpan, CompressedTimeSpan)
    Multiply(CompressedTimeSpan, Int32)
    Multiply(CompressedTimeSpan, Single)
    Subtraction(CompressedTimeSpan, CompressedTimeSpan)
    | Improve this Doc View Source

    Constructors


    CompressedTimeSpan(Int32)

    public CompressedTimeSpan(int ticks)
    Parameters
    Type Name Description
    System.Int32 ticks
    | Improve this Doc View Source

    Fields


    MaxValue

    public static readonly CompressedTimeSpan MaxValue
    Field Value
    Type Description
    CompressedTimeSpan

    MinValue

    public static readonly CompressedTimeSpan MinValue
    Field Value
    Type Description
    CompressedTimeSpan

    TicksPerMillisecond

    public const int TicksPerMillisecond = 100
    Field Value
    Type Description
    System.Int32

    TicksPerSecond

    public const int TicksPerSecond = 100000
    Field Value
    Type Description
    System.Int32

    Zero

    public static readonly CompressedTimeSpan Zero
    Field Value
    Type Description
    CompressedTimeSpan
    | Improve this Doc View Source

    Properties


    Ticks

    public readonly int Ticks { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Methods


    CompareTo(CompressedTimeSpan)

    public int CompareTo(CompressedTimeSpan other)
    Parameters
    Type Name Description
    CompressedTimeSpan other
    Returns
    Type Description
    System.Int32

    CompareTo(Object)

    public int CompareTo(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Int32

    Equals(CompressedTimeSpan)

    public bool Equals(CompressedTimeSpan other)
    Parameters
    Type Name Description
    CompressedTimeSpan other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    FromSeconds(Double)

    public static CompressedTimeSpan FromSeconds(double seconds)
    Parameters
    Type Name Description
    System.Double seconds
    Returns
    Type Description
    CompressedTimeSpan

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    | Improve this Doc View Source

    Operators


    Addition(CompressedTimeSpan, CompressedTimeSpan)

    public static CompressedTimeSpan operator +(CompressedTimeSpan t1, CompressedTimeSpan t2)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    CompressedTimeSpan t2
    Returns
    Type Description
    CompressedTimeSpan

    Division(CompressedTimeSpan, Int32)

    public static CompressedTimeSpan operator /(CompressedTimeSpan t1, int factor)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    System.Int32 factor
    Returns
    Type Description
    CompressedTimeSpan

    Division(CompressedTimeSpan, Single)

    public static CompressedTimeSpan operator /(CompressedTimeSpan t1, float factor)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    System.Single factor
    Returns
    Type Description
    CompressedTimeSpan

    Equality(CompressedTimeSpan, CompressedTimeSpan)

    public static bool operator ==(CompressedTimeSpan left, CompressedTimeSpan right)
    Parameters
    Type Name Description
    CompressedTimeSpan left
    CompressedTimeSpan right
    Returns
    Type Description
    System.Boolean

    Explicit(TimeSpan to CompressedTimeSpan)

    public static explicit operator CompressedTimeSpan(TimeSpan t)
    Parameters
    Type Name Description
    System.TimeSpan t
    Returns
    Type Description
    CompressedTimeSpan

    GreaterThan(CompressedTimeSpan, CompressedTimeSpan)

    public static bool operator>(CompressedTimeSpan t1, CompressedTimeSpan t2)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    CompressedTimeSpan t2
    Returns
    Type Description
    System.Boolean

    GreaterThanOrEqual(CompressedTimeSpan, CompressedTimeSpan)

    public static bool operator >=(CompressedTimeSpan t1, CompressedTimeSpan t2)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    CompressedTimeSpan t2
    Returns
    Type Description
    System.Boolean

    Implicit(CompressedTimeSpan to TimeSpan)

    public static implicit operator TimeSpan(CompressedTimeSpan t)
    Parameters
    Type Name Description
    CompressedTimeSpan t
    Returns
    Type Description
    System.TimeSpan

    Inequality(CompressedTimeSpan, CompressedTimeSpan)

    public static bool operator !=(CompressedTimeSpan left, CompressedTimeSpan right)
    Parameters
    Type Name Description
    CompressedTimeSpan left
    CompressedTimeSpan right
    Returns
    Type Description
    System.Boolean

    LessThan(CompressedTimeSpan, CompressedTimeSpan)

    public static bool operator <(CompressedTimeSpan t1, CompressedTimeSpan t2)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    CompressedTimeSpan t2
    Returns
    Type Description
    System.Boolean

    LessThanOrEqual(CompressedTimeSpan, CompressedTimeSpan)

    public static bool operator <=(CompressedTimeSpan t1, CompressedTimeSpan t2)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    CompressedTimeSpan t2
    Returns
    Type Description
    System.Boolean

    Multiply(CompressedTimeSpan, Int32)

    public static CompressedTimeSpan operator *(CompressedTimeSpan t1, int factor)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    System.Int32 factor
    Returns
    Type Description
    CompressedTimeSpan

    Multiply(CompressedTimeSpan, Single)

    public static CompressedTimeSpan operator *(CompressedTimeSpan t1, float factor)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    System.Single factor
    Returns
    Type Description
    CompressedTimeSpan

    Subtraction(CompressedTimeSpan, CompressedTimeSpan)

    public static CompressedTimeSpan operator -(CompressedTimeSpan t1, CompressedTimeSpan t2)
    Parameters
    Type Name Description
    CompressedTimeSpan t1
    CompressedTimeSpan t2
    Returns
    Type Description
    CompressedTimeSpan

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation