Class StructTimeval


  • public final class StructTimeval
    extends Object
    Corresponds to C's struct timeval from <sys/time.h>
    • Field Detail

      • tv_sec

        public final long tv_sec
        Seconds.
      • tv_usec

        public final long tv_usec
        Microseconds.
    • Method Detail

      • fromMillis

        public static StructTimeval fromMillis​(long millis)
      • toMillis

        public long toMillis()
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.