Execute a function if the last execution time is older than a specified value.
throttle(fun, t = 1)
fun
the function to execute
t
an integer, the threshold in seconds