1
0
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:
spaceface777
2020-09-25 17:02:02 +02:00
committed by GitHub
parent aa1d5fcbdd
commit b44620d065
3 changed files with 30 additions and 29 deletions

View File

@@ -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