Changed data format to `{ x, y }` where `x` is time in milliseconds

This PR includes the previous ones (some of them were rejected, so this might require manual merge).
Frankly, you don't need this function. And, if you want to stay on pedantic side, I believe #include <chrono> has templated versions. :-)