sparkles-core 0.1.3

Core crate for sparkles
Documentation

✧ sparkles-core ✧

Core crate for sparkles

no_std support

Bare-metal systems are supported. Alloc is required.

✧ Timestamp provedrs

Sparkles prefer to use timestamp directly from your CPU, so different timestamp providers are supported

  • x86: Works best for now. Comes with two variants: by default faster but not very accurate (+-2ns). If you need CPU cycle percicion, enable feature accurate-timestamps-x86 (overhead ~10ns)
  • std: Use Instant::now, which is slower, but should be supported by any other std environment.
  • cortex-m: Requires feature cortex-m. Comes with additional init() method to enable cycle counter peripheral.

The appropriate implementation is selected at compile time depending on architecture and features.