I have some function to execute which might take longer time.
What i want to do is if the given function is taking more than 5 second then terminate this task and execute some another function.
if (function(a) > 5 seconds)
function(b)
else
function(c)