xous-core/services/ticktimer-server/src/api.rs
2021-03-28 18:14:41 +08:00

11 lines
282 B
Rust

#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
pub(crate) enum Opcode {
/// Get the elapsed time in milliseconds
ElapsedMs,
/// Sleep for the specified numer of milliseconds
SleepMs,
/// Recalculate the sleep time
RecalculateSleep,
}