diff --git a/README.md b/README.md index 8645a3ca08de8d1414f6a45fa4d70680b928b047..9a6064623238024c8a7c9ff7e2e3b2e278ad1d7b 100644 --- a/README.md +++ b/README.md @@ -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`, 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 `cargo add web_instant`