emit event 'ttl' when the function ttl is executed.

Well, 
Sometimes is very useful catch when the ttl is running for execute a job at this time.

I'm not sure if that is the better moment to emit the event, but the feature is really useful.