This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

nsec

        # Time.nsec

(from ruby core)
---
    nsec()

---

Returns the number of nanoseconds for the subsecond part of *time*. The
result is a non-negative integer less than 10**9.

    t = Time.now        #=> 2020-07-20 22:07:10.963933942 +0900
    t.nsec              #=> 963933942

If *time* has fraction of nanosecond (such as picoseconds), it is
truncated.

    t = Time.new(2000,1,1,0,0,0.666_777_888_999r)
    t.nsec              #=> 666777888

Time#subsec can be used to obtain the subsecond part exactly.


(This method is an alias for Time#tv_nsec.)

Returns the number of nanoseconds for the subsecond part of *time*. The
result is a non-negative integer less than 10**9.

    t = Time.now        #=> 2020-07-20 22:07:10.963933942 +0900
    t.nsec              #=> 963933942

If *time* has fraction of nanosecond (such as picoseconds), it is
truncated.

    t = Time.new(2000,1,1,0,0,0.666_777_888_999r)
    t.nsec              #=> 666777888

Time#subsec can be used to obtain the subsecond part exactly.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.