/* Get the elapsed milliseconds since a previous time stamp  */
uint32_t lv_tick_elaps(uint32_t prev_tick)
/* Get the elapsed milliseconds since a previous time stamp  */
uint32_t lv_tick_elaps(uint32_t prev_tick)
{
    uint32_t act_time = lv_tick_get();
    if(act_time >= prev_tick) {
        prev_tick = act_time - prev_tick;
    }
    else {
        prev_tick = UINT32_MAX - prev_tick + 1;
        prev_tick += act_time;
    }
    return prev_tick;
}