I need to use the computer clock to load a function in a given time in milliseconds after the application has started. How do I do that?
Printable View
I need to use the computer clock to load a function in a given time in milliseconds after the application has started. How do I do that?
Use can use setTimeout() function or Timer class.
Those are heavily affected by memory usage and I am loading videos.
I figured out a way using date() but it is still affected by memory when the memory load is too heavy.
Well getTimer() tells you how many milleseconds since the application started.
I ended up just using cue points.