Page 1 of 1

Calculating elapsed time in OnTimer callees

PostPosted: 09 Mar 2010 13:51
by siavoshkc

Re: Calculating elapsed time in OnTimer callees

PostPosted: 11 Mar 2010 04:33
by raspopov
Prove it on real Shareaza code.

Re: Calculating elapsed time in OnTimer callees

PostPosted: 14 Mar 2010 18:21
by ailurophobe
I don't know about Shareaza, but usually that is done because a single timer is used to trigger multiple events. The timer calls the callbacks and only the ones that actually are elapsed execute. This used to be common since timers used to be expensive in terms of system resources. I'd assume that relatively speaking they still are.

Re: Calculating elapsed time in OnTimer callees

PostPosted: 15 Mar 2010 09:22
by siavoshkc
I'll do it to Scheduler.

[EDIT]
I did it.

Caller is responsible to not to call a function too soon.