Skip to content
Snippets Groups Projects
Verified Commit a20f3297 authored by Louis's avatar Louis :fire:
Browse files

Update README.md

parent bd3445c2
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
Provides `Spot`, a version of `Instant` that works both on desktop and the web. On desktop, the internal representation uses `std::time::Instant`. On the web, the internal representation is an `f64`, Provides `Spot`, a version of `Instant` that works both on desktop and the web. On desktop, the internal representation uses `std::time::Instant`. On the web, the internal representation is an `f64`,
and uses `js_sys::Date` methods to cover functinality where required and uses `js_sys::Date` methods to cover functinality where required
All the methods on `Instant` are implemented for `Spot`, so you can just replace uses of `std::time::Instant` with `web_instant::Spot`
## Install ## Install
`cargo add web_instant` `cargo add web_instant`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment