Added in API level 27

StructTimespec


class StructTimespec : Comparable<StructTimespec!>
kotlin.Any
   ↳ android.system.StructTimespec

Corresponds to C's struct timespec from <time.h>.

Summary

Public constructors
StructTimespec(tv_sec: Long, tv_nsec: Long)

Public methods
Int

Boolean
equals(other: Any?)

Int

String

Properties
Long

Nanoseconds (values are [0, 999999999]).

Long

Seconds part of time of last data modification.

Public constructors

StructTimespec

Added in API level 27
StructTimespec(
    tv_sec: Long,
    tv_nsec: Long)

Public methods

compareTo

Added in API level 27
fun compareTo(other: StructTimespec!): Int
Parameters
o the object to be compared.
Return
Int a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Exceptions
java.lang.NullPointerException if the specified object is null
java.lang.ClassCastException if the specified object's type prevents it from being compared to this object.

equals

Added in API level 27
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

hashCode

Added in API level 27
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 27
fun toString(): String
Return
String a string representation of the object.

Properties

tv_nsec

Added in API level 27
val tv_nsec: Long

Nanoseconds (values are [0, 999999999]).

tv_sec

Added in API level 27
val tv_sec: Long

Seconds part of time of last data modification.