Added in API level 29

StructTimeval


class StructTimeval
kotlin.Any
   ↳ android.system.StructTimeval

Corresponds to C's struct timeval from sys/time.h.

Summary

Public methods
Boolean
equals(other: Any?)

static StructTimeval
fromMillis(millis: Long)

Int

Long

String

Properties
Long

Seconds.

Long

Microseconds.

Public methods

equals

Added in API level 29
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.

fromMillis

Added in API level 29
static fun fromMillis(millis: Long): StructTimeval
Return
StructTimeval This value cannot be null.

hashCode

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

toMillis

Added in API level 29
fun toMillis(): Long

toString

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

Properties

tv_sec

Added in API level 29
val tv_sec: Long

Seconds.

tv_usec

Added in API level 29
val tv_usec: Long

Microseconds.