计时器可以超过 1 毫秒 Android
Can a timer goes faster than 1ms Android
我想对模拟设备的声音进行采样,并且使用了定时器。但是,使用 Android API timer 您可以设置等待和延迟(以毫秒为单位)。例如
schedule(TimerTask task, Date firstTime, long period)//period in milliseconds
Schedules the specified task for repeated fixed-delay execution, beginning at the specified time.
这意味着我不能超过 1ms(即 1kHz)。
这是真的吗?
这是真的。这是系统定义的时间段。
我想对模拟设备的声音进行采样,并且使用了定时器。但是,使用 Android API timer 您可以设置等待和延迟(以毫秒为单位)。例如
schedule(TimerTask task, Date firstTime, long period)//period in milliseconds
Schedules the specified task for repeated fixed-delay execution, beginning at the specified time.
这意味着我不能超过 1ms(即 1kHz)。
这是真的吗?
这是真的。这是系统定义的时间段。