Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    TimeSpanExtensions Class

    Namespace: Stride.Audio
    Assembly: Stride.Audio.dll
    System.Object → TimeSpanExtensions
    Derived from TimeSpanExtensions:

    public static class TimeSpanExtensions
    Name Description
    Methods
    Clamp(TimeSpan, TimeSpan, TimeSpan)
    FromMicroSeconds(Int64)
    Max(TimeSpan, TimeSpan)
    Min(TimeSpan, TimeSpan)
    TotalMicroSeconds(TimeSpan)
    | Improve this Doc View Source

    Methods


    Clamp(TimeSpan, TimeSpan, TimeSpan)

    public static TimeSpan Clamp(TimeSpan value, TimeSpan min, TimeSpan max)
    Parameters
    Type Name Description
    System.TimeSpan value
    System.TimeSpan min
    System.TimeSpan max
    Returns
    Type Description
    System.TimeSpan

    FromMicroSeconds(Int64)

    public static TimeSpan FromMicroSeconds(long microSeconds)
    Parameters
    Type Name Description
    System.Int64 microSeconds
    Returns
    Type Description
    System.TimeSpan

    Max(TimeSpan, TimeSpan)

    public static TimeSpan Max(TimeSpan left, TimeSpan right)
    Parameters
    Type Name Description
    System.TimeSpan left
    System.TimeSpan right
    Returns
    Type Description
    System.TimeSpan

    Min(TimeSpan, TimeSpan)

    public static TimeSpan Min(TimeSpan left, TimeSpan right)
    Parameters
    Type Name Description
    System.TimeSpan left
    System.TimeSpan right
    Returns
    Type Description
    System.TimeSpan

    TotalMicroSeconds(TimeSpan)

    public static long TotalMicroSeconds(this TimeSpan timeSpan)
    Parameters
    Type Name Description
    System.TimeSpan timeSpan
    Returns
    Type Description
    System.Int64

    • Improve this Doc
    • View Source
    In This Article

    Back to top

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