Keep Track of The Time Between mousedown and mouseup
Sounds as simple as it is, log the time when the user triggers the mousedown event, and when the user triggers the mouseup event. Subtract these two numbers and test to see if they are greater than your desired threshold
// Get the time of mouse down
var mouseDownTime;
var threshold = 1000; // 1000 milliseconds == 1 second.
$("#phone").find("button").mousedown(function(event){
var mouseDownDate = new Date();
mouseDownTime = mouseDownDate.getTime();
});
$("#phone").find("button").mouseup(function(event){
var mouseUpDate = new Date();
var mouseUpTime = mouseUpDate.getTime();
if(mouseUpTime - mouseDownTime > threshold){
// Code you want called after being triggered.
}
});