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 | |
| static StructTimeval | fromMillis(millis: Long) |
| Int | hashCode() |
| Long | toMillis() |
| String | toString() |
| 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. |
toString
Added in API level 29
fun toString(): String
| Return | |
|---|---|
String | a string representation of the object. |