Fluent Assertions Documentation
FluentAssertions.Extensions Namespace / FluentTimeSpanExtensions Class / Nanoseconds Method / Nanoseconds(Int32) Method
In This Topic
    Nanoseconds(Int32) Method
    In This Topic
    Returns a System.TimeSpan based on a number of nanoseconds.
    Syntax
    [Extension()]
    public static TimeSpan Nanoseconds( 
       int nanoseconds
    )

    Parameters

    nanoseconds
    Remarks
    .NET's smallest resolutions is 100 nanoseconds. Any nanoseconds passed in lower than .NET's resolution will be rounded using the default rounding algorithm in Math.Round().
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also