Javascript elapsed time function observer -


I if and how is possible for a function Type which looks at another function. The more accurate, obsever viewed function keeps track of execution time , and if there is more than a certain time value then Suppressor Pause function.

So, in a nutshell:

  celebrated the celebration () {// ...} / ** * to run a function and if it was from a given time More is close Function * * External {number} Maximum time allowed maximum time allowed for running and inspecting functions * / Function Supervisor More than time) * Punctuation Fans; * Return; * Other * Return; (When Function Returns Function) * /}   

Is it viewed without changing the function < / P>

Only those browsers that support it If you were viewed , The main script can call the worker.

Normally (at least historical) is javascript, and so when viewed is running, supervisor there is no way to stop it .

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -