Files
breeze/tests/android_timer_policy_behavior.zi
T
waozi b5356aaac7 Port Inbe screens, storage, and platform hosts to Ziran
Replace the remaining .kry and C application sources with Ziran modules,
move vendored dependencies to their current pointers, and add Ziran tests for
the ported hosts and policies.
2026-09-27 15:40:52 -03:00

22 lines
492 B
Ziran

#import "android_timer";
#program_export
TimerPolicyCheck :: () -> s32 {
if TimerElapsedMillis(0, 100000000) != 100 {
return -1
}
if TimerElapsedMillis(100000000, 150000000) != 50 {
return -2
}
if TimerElapsedMillis(100000000, 100000000) != 100 {
return -3
}
if TimerElapsedMillis(100000000, 100100000) != 100 {
return -4
}
if TimerElapsedMillis(100000000, 600200000000) != 300000 {
return -5
}
return 42
}