quad-timestamp 0.1.2

A simple timestamp library for miniquad/macroquad
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented2 out of 2 items with examples
  • Size
  • Source code size: 13.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • FaunKr/quad-timestamp
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • FaunKr

quad-timestamp

Docs Crates.io version

This is a crate which enables you to get an unix timestamp in miniquad/macroquad while running in a WASM environment. In any other envoirment it will fallback to chrono to aquire a timestamp.

Usage

Add this to your Cargo.toml dependencies:

quad-timestamp = "0.1.1"

Usage in WASM

Add file js/quad-timestamp.js to your project.

Add this line after loading of gl.js and before loading of your wasm in your index.html:

<script src="quad-timestamp.js"></script>