timer

EJB3 + JEE6: What is a persistent Timer?

I'm just about to use the new EJB3 TimerService (as part of Java EE 6), and as usual, I'm impressed by the brevity of JavaDoc :) Do you know what is the effect of the persistent property of the TimerConfig object? JavaDoc TimerConfig says: The persistent property determines whether the corresponding timer has a lifetime that spans the ...

16-bit timers in M4-64/32

does anyone know how to initialise the 16-bit timers in M4-64/32? ...

mkreversegeocoder and timer

i've read that with using mkreversegeocoder i can do a query every 60 seconds. my istance of mkreversegeogoder start after cllocation retrieve some info. What's the best way to do a 60 seconds query? a timer? or play with timestamp of my olddate? or some other stuff? thank's ...

System.Timers.Timer leaking due to "direct delegate roots"

Apologies for the rather verbose and long-winded post, but this problem's been perplexing me for a few weeks now so I'm posting as much information as I can in order to get this resolved quickly. We have a WPF UserControl which is being loaded by a 3rd party app. The 3rd party app is a presentation application which loads and unloads co...

Timer Service in ejb 3.1 - schedule calling timeout problem

Hi Guys, I have created simple example with @Singleton, @Schedule and @Timeout annotations to try if they would solve my problem. The scenario is this: EJB calls 'check' function every 5 secconds, and if certain conditions are met it will create single action timer that would invoke some long running process in asynchronous fashion. (it...

ASP.NET/AJAX - Timer not working correct

Hi, I'm trying to make an webapplication where you see an Ajax countdown timer. Whenever I push a button the countdown should go back to 30 and keep counting down. Now the problem is whenever I push the button the timer keeps counting down for a second or 2 and most of the time after that the timer keeps standing on 30 for to long. We...

AJAX - ASP.NET - Timer delay problem

Hi, I'm trying to make an webapplication where you see an Ajax countdown timer. Whenever I push a button the countdown should go back to 30 and keep counting down. Now the problem is whenever I push the button the timer keeps counting down for a second or 2 and most of the time after that the timer keeps standing on 30 for to long. We...

ASP/AJAX - Client Timer synchronous with Server Timer

Hi, I'm searching for an example with an client timer that ticks synchronous with an server timer. Also there must be a button on the client side which can reset the server timer to an default value, and with this it also resets the client timer ofcourse. I tried it myself but it seems that there is some postback delay which makes it...

Global Timer in Javascript with Multiple Callbacks

I want to create a global timer object in javascript and then be able to add callbacks to it on the fly. This way I can just use one global timer in my script to execute all actions at a certain interval rather than wasting resources by using multiples. This is how I want to be able to piece things together: var timer = new function() ...

C# - Alternative to System.Timers.Timer, to call a function at a specific time.

Hello everybody. I want to call a specific function on my C# application at a specific time. At first i thought about using a Timer (System.Time.Timer), but that soon became impossible to use. Why? Simple. The Timer Class requires a Interval in milliseconds, but considering that i might want the function to be executed, lets says in a ...

How can I make this timer run forever?

from threading import Timer def hello(): print "hello, world" t = Timer(30.0, hello) t.start() This code only fires the timer once. How can I make the timer run forever? Thanks, updated this is right : import time,sys def hello(): while True: print "Hello, Word!" sys.stdout.flush() time.sleep(2.0...

Reducing time in C# Forms Control.set_Text(string) function

Hoping for a quick answer (which SO seems to be pretty good for)... I just ran a performance analysis with VS2010 on my app, and it turns out that I'm spending about 20% of my time in the Control.set_Text(string) function, as I'm updating labels in quite a few places in my app. The window has a timer object (Forms timer, not Threadin...

How to change label content with timers throwing InvalidOperationException.

Hi there, I'm making an application and I'm using a timer in that application to change label content in WPF C# .NET. In timer elapsed event I'm writing the following code lblTimer.Content = "hello"; but its throwing an InvalidOperationException and gives a message "The calling thread cannot access this object because a different thr...

javascript watching for variable change via a timer

I have a slide show where every 10 seconds the next image loads. Once an image loads, it waits 10 seconds (setTimeout) and then calls a function which fades it out, then calls the function again to fade in the next image. It repeats indefinitely. This works. However, at times, I'm going to want to over-ride this "function1 call -> paus...

gracefully stopping a windows service with mutlithreaded processing on a timer thread?

Hi, Any ideas on gracefully stopping a windows service with mutli-threaded processing on a timer thread? Is it possible to add some infinite loop logic in the OnStop method to postpone the service shutting down. ...

Start a Countdown timer in a Telerik RadGridView upon Button Click

Hi, I have a Start Button as one of the RadGridView columns. Upon clicking it, I need to update another a Status Column value in that particular row with a value as started and another column as Time Remaining which should show a countdown Timer value (in minutes) decreasing and auto updates/refreshes its value Every Minute. How can I...

ASP/AJAX - How to get the time between an server request and response?

Whenver Ajax requests new data from the server this can sometimes take a a second or two. Now I want to know, how can I get this time between the ajax request and the response it gets from the server? I need this because an ajax timer I'm running ain't perfectly doing his stuff. It got some delay whenever it needs to reset to it's origi...

JAVA: How do I accept input during a certain period of time only

Im trying to do a simple game where I continually need input from players. This needs to happen during a certain time period only. Everything that is sent after that will be discarded. After the time period a new game starts. So: Start game Wait for input from all players during 10 seconds > 10 secs no more input Calculate the winner a...

Timer based reminder in iPhone app

My app asks the user to fill in and save a form locally. I want him to be reminded 48 hrs after the app has been closed that he has a pending form. Is push notification the only way out? Does it cost money to use a provisioning service? ...

Problem with ASP.NET Ajax Timer delay

I've got a problem with the timer in asp.net ajax. The timer needs to trigger every second so I put the delay of the timer (don't know the real name atm) at 1000. Now when I put this timer inside an UpdatePanel it doesn't really trigger every second because the timer also gets updated in the UpdatePanel. But when I put the timer outsid...