Hi all!
I have a friend who runs an online auction website. He currently has a featured items section on the homepage that he wants to have cycle an item every X amount of minute. The site runs off a MySQL database which I haven't actually seen yet.
The current code that he is using is a big, long messy Javascript code that is causing a...
We've identified a hotspot in our code using CCR timers. It appears that if we enqueue many thousands of timers that the code suffers terminal slowdown.
The fix is to choose the soonest scheduled item and enqueue a timer for this event. When it fires, we repeat. In this way, we're only ever enqueueing one timer interval at a time.
What...
What's the best way, in C# to keep track of the number of events per timespan?
For example, I want to limit my TCP application to, say, a maximum of 10 requests per minute before setting a flag. The TCP application is intended to be as efficient as possible and runs as a windows service.
Maybe I should work on it tomorrow when my brain...
I have written a 3D-Stereo OpenGL program in C++. I keep track of the position objects in my display should have using timeGetTime after a timeBeginPeriod(1). When I run the program with "Start Debugging" my objects move smoothly across the display (as they should). When I run the program with "Start without debugging" the objects occ...
I have implemented a token system which assigns a fixed number of tokens. Each token on assignment starts up a Timer which expires after a few number of minutes and clears that token slot for reuse. If the user validates the token before the timer expires the Timer is supposed to be cancelled and reset with another token validity period....
Hi guys,
I have a very hard problem:
I have round about 20-50 objects, which I MUST (that is given for the problem, please don't spend time in thinking around it) put througt a logic EVERY SECOND.
The logic itself need round about 200-600 milliseconds (90% it is 200ms - 10% it is 600ms).
I try to find any solution how I can make is s...
Hi All
I have a problem with an AdvancedDataGrid; i want the fields Actual and Estimate to change with the timer function but it doesn't work. It works only by refreshing all the adg with the collapse of the tree structure. I want that if the tree is "exploded" only actual and estimate fields refresh. Sorry for my uncorrect english.
Here...
Hi guys,
I use the system.timers.timer for my service.
Now I build a test-form in which I use it too. In the timer_Elapsed Event I do some work and want to stop the timer it need (xxx ms) and write it on the form control to show.
But when I access the listview, I get an cross thread error.
Any ideas?
...
I have a module that sets Swing Timer to wake up after 3 minutes and I see that it is fired after less than 2 minutes.
I have to mention that while waiting for the Timer, an extensive Swing activities went on and other Swing Timers, on different threads were used.
Could such activity affect the Timer's timing?
...
Hi guys! Please help!
I call a threading.timer from global.asax which invokes many methods each of which gets data from different services and writes it to files.
My question is how do i make the methods to be invoked on a regular basis let's say 5 mins?
What i do is:
in Global.asax I declare a timer
protected void Application_Start()
...
asp.net
c#
Our webpage currently contains a rather large web app which causes a lengthy delay when attemping to navigate to it. I'm currently implementing a WCF web service to utilize ajax but the delay is a concern to my employer so he wanted a quick and dirty fix in the mean time.
I would like to have the empty page load and then use...
Background
I'm using UKCrashReporter in my app.
I've installed my own Uncaught
Exception Handler.
I'm setting up the
managedObjectContext of the object
activeItemController in
applicationDidFinishLaunching (1)
The Problem
If the managedObjectContext method throws an exception, the crash reporter dialog box only flashes up before th...
Hi,
We have an axis2 webservice that scehdules a job using Timer. The class that gets executed when the jobs kicks off handles complex data types defined in the webservice package. We I deploy it and run it, I get class not found exception so I tested by packaging the datatype class file and putting it in the $tomcat_home/lib directory ...
I have an OpenGL ES 1.1 project on iPhone, based heavily on the empty OpenGL ES application given here:
http://iphonedevelopment.blogspot.com/2009/06/empty-opengl-es-application-project.html
I'm testing on a 3G (not 3GS) device, 8GB.
The paint loop in my app which does openGL operations is doing quite a lot each time it renders the sc...
Hi,
I'm using the Actionscript Timer class. What happens if I run a function every 3 seconds, but the function takes 4 seconds to complete?
Does the Timer object queue up events? I guess this must happen if only 1 thread is being used?
...
So I'm trying to learn how the javax.swing.Timer works, but I can't get it to do a simple operation. Basically all I'm trying to do is have the system print out "test2" every second, but it seems the actionPerformed method is never called. What am I doing wrong?
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
...
Hi,
I'm using Django to create registration/payment application for a limited number of products. I want to create a timer so that when a user chooses to purchase a product, that product will then displayed as "already taken". But, if the user the user does not go through with the purchase and the timer runs out, the product goes ba...
Hello all,
I have a view (splash screen) which displays for two minutes:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
[viewController showSplash];
}
- (void)showSplash // Show splash screen
{
UIViewController *modalViewController = [[UIViewController alloc] init];
modalViewController.view = modelView;
[se...
Hello,
Does TimerTask work even if my exit my application and come to home screen or explore other apps?
I have read the forum and find out the thread kind of easy mechanism is to use TimerTask in BB. I want to have thread running always even my app is not launched(after first time), so that when an particular interval arrives, i can sh...
I need the ability to create up to N amount timers in JavaScript/Ajax that will count like a stopwatch(but have no buttons).
Another issue is that my data will be loaded via another Ajax request so the page will constantly be updating. I'm not sure how I would be able to keep a timer's correct value when that happens.
Thanks!
...