timing
Sequencing Events in Javascript
I am trying to make a simple hidden object game using javascript. When the user finds and clicks an image, I want 3 things to happen in the following order; a sound plays, the image size increases, an[详细]
2023-04-07 09:38 分类:问答Java: How to detect if a key has been held down over a certain time without checking every loop
EDIT: Notice to others, premature optimisation is the root of all evil! Had I not been busily attempting to optimise every aspect of my code (it was a phase OK!) I\'d have made a nice, readable progra[详细]
2023-04-06 04:44 分类:问答Timing execution time in .net and disregard OS hibernation time
We are trying to incorporate some timing of code in our application and have run into a potential problem. We would like the timing to be robust so that the periods where the computer is hibernating,[详细]
2023-04-03 05:42 分类:问答Python/Perl: timed loop implementation (also with microseconds)?
I would like to use Perl and/or Python to implement the following JavaScript pseudocode: var c=0; function timedCount()[详细]
2023-04-02 20:31 分类:问答Scope or timing issue while loading jQuery and jQueryUI in bookmarklet via <script>?
Edit: Details updated to add differences in Firefox/Chrome behavior I am trying to create a bookmarklet that will load both jQuery and jQueryUI. The jQuery load uses javascript, but I figured since j[详细]
2023-04-02 19:34 分类:问答Does setTimeout in JavaScript accept real (floating point) delay times_
I was just looking at JavaScript Timing Events, and there it says that \"The second parameter indicates how many milliseconds from now you want to execute the first parameter.\"[详细]
2023-04-02 06:04 分类:问答iOS, iPhone, iPad: is slow loading a good strategy to avoid memory crashes?
This question is a follow-on to this other question. I have a game on the App Store that, only rarely, crashes when loading on iPad1. The game is resource-intensive and does indeed load up several la[详细]
2023-03-29 20:06 分类:问答CPU time after the process finished
Is there a function in Linux which allows me to see how much CPU did a process use after it finished? I need something simila开发者_StackOverflow中文版r to bash \"time\" command. I am fork()ing the pr[详细]
2023-03-27 17:07 分类:问答Games and accurate timing
I am new to Actionscript and making a game to learn its ways. The game relies heavily on timing as it will be spawning enemies timed with music. For example spawn 2 enemies at exactly 1:31 minutes, st[详细]
2023-03-27 16:31 分类:问答Call a function every nanosecond?
Not sure if this is possible in light of physical limits on computer hardware or electrons but does there exist a practical way in any programming language to call a function every nanosecond? What li[详细]
2023-03-24 13:12 分类:问答