.try_into()
| ^^^^^^^^ the trait `TryFrom<embedded_time::duration::Generic<<Clock as embedded_time::Clock>::T>>` is not implemented for `Milliseconds`
The driver should (of course) not make any assumptions of the clock implementation. Is passing the clock as generic parameter the right way to do this?
I want to get the number of elapsed milliseconds within a driver. The following code does not compile:
It throws the following error:
The driver should (of course) not make any assumptions of the clock implementation. Is passing the clock as generic parameter the right way to do this?