Add timer_ticks_to_milliseconds function

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Introduce duration measurement of read/write operations

Signed-off-by: Petr Štetiar <ynezz@true.cz>