UpdateFunctions

Crates.ioUpdateFunctions
lib.rsUpdateFunctions
version0.1.6
sourcesrc
created_at2022-04-16 04:31:10.852829
updated_at2022-04-16 21:58:03.400435
descriptionA small package for calling a function at a desired interval
homepage
repository
max_upload_size
id568831
size2,767,806
(Sha-dos)

documentation

https://docs.rs/UpdateFunctions/0.1.6/UpdateFunctions/

README

Update Functions

A small package for calling a function at a desired interval

Usage

fn main() {
let dur = Duration::new(1, 0) // One second and 0 ms
UpdateFunctions::update(dur, Update)
}

pub fn Update() {
println!("Updating!");
}

Installation

In cargo.toml

UpdateFunctions = "0.1.3"
Commit count: 0

cargo fmt