kettle11 / kapp

A pure Rust window and input library for Windows, Mac, and Web. (Work in progress)
Apache License 2.0
56 stars 4 forks source link

Add function to get current timestamp. #20

Open kettle11 opened 4 years ago

kettle11 commented 4 years ago

Presently it's annoying to work with timestamps on events as there's no frame of reference to compare them to.

There should be a mechanism to get the current timestamp. It could be exposed as a function on application, or perhaps a function more globally available.