xous-core/services/ticktimer-server/src/api.rs

12 lines
282 B
Rust
Raw Normal View History

2021-03-28 10:14:41 +00:00
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
pub(crate) enum Opcode {
2020-10-12 11:08:16 +00:00
/// Get the elapsed time in milliseconds
ElapsedMs,
/// Sleep for the specified numer of milliseconds
2021-03-28 10:14:41 +00:00
SleepMs,
/// Recalculate the sleep time
RecalculateSleep,
2020-10-12 11:08:16 +00:00
}