Restart animate duration from pause value

Restart animate duration from pause value

Hi,
I'm trying to have the duration from the resume animation when mouseleave, restart from where it previously paused. I tried using variables to store the amount of time passed but I'm new to this and don't know how to do it.

$('.timer').animate({'width':940}, {queue:false, duration:5000, easing: 'linear'});
$('.slider_app').mouseenter(function(){
 $('.timer').stop();  
});
$('.slider_app').mouseleave(function(){
 $('.timer').animate({'width':940}, {queue:false, duration:5000, easing: 'linear'});
});