StructTimeval.FromMillis(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a StructTimeval from a millisecond value.
[Android.Runtime.Register("fromMillis", "(J)Landroid/system/StructTimeval;", "", ApiSince=29)]
public static Android.Systems.StructTimeval FromMillis(long millis);
[<Android.Runtime.Register("fromMillis", "(J)Landroid/system/StructTimeval;", "", ApiSince=29)>]
static member FromMillis : int64 -> Android.Systems.StructTimeval
Parameters
- millis
- Int64
The value to represent, in milliseconds.
Returns
A value whose seconds and microseconds components represent millis.
- Attributes
Remarks
For negative values, the seconds component is rounded down and the microseconds component remains non-negative.
AOSP source for StructTimeval.fromMillis(long).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Apache License 2.0.