sparkles-core

Crates.iosparkles-core
lib.rssparkles-core
version0.1.4
sourcesrc
created_at2024-09-08 23:41:51.556108
updated_at2024-09-28 18:04:26.263434
descriptionCore crate for sparkles
homepage
repositoryhttps://github.com/skibon02/sparkles
max_upload_size
id1368623
size21,417
Влад (skibon02)

documentation

README

✧ 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/x86_64: Comes in two variants: by default faster but not very accurate (+-4ns). If you need CPU cycle percicion, enable feature accurate-timestamps-x86 (overhead is additional ~10ns)
  • aarch64: Used on aarch64 CPU.
  • 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.

Commit count: 61

cargo fmt