mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: use linux high-precision timers on Android as well (#6476)
This commit is contained in:
@@ -100,7 +100,7 @@ pub fn now() Time {
|
||||
$if solaris {
|
||||
return solaris_now()
|
||||
}
|
||||
$if linux {
|
||||
$if linux || android {
|
||||
return linux_now()
|
||||
}
|
||||
// defaults to most common feature, the microsecond precision is not available
|
||||
@@ -121,7 +121,7 @@ pub fn utc() Time {
|
||||
$if solaris {
|
||||
return solaris_utc()
|
||||
}
|
||||
$if linux {
|
||||
$if linux || android {
|
||||
return linux_utc()
|
||||
}
|
||||
// defaults to most common feature, the microsecond precision is not available
|
||||
|
||||
Reference in New Issue
Block a user