timer

Linux Virtual Timer Behavior on Clone Threads

I have done the following: Create a virtual timer that triggers repeatedly. Install signal handler for SIGVTALRM Call clone syscall Set sched_affinity such that the cloned thread runs on a different CPU Will the cloned thread also be listening for SIGVTALRM? So will both the threads call the signal handler when SIGVTALRM is triggered...

How do I measure a time interval in C?

I would like to measure time in C, and I am having a tough time figuring it out, all I want is something like this: start a timer run a method stop the timer report the time taken (at least to micro accuracy) Any help would be appreciated. (I am compiling in windows using mingw) ...

Using timer in Windows Mobile during standby

I want to use a timer in a windows mobile app. Of course, this is not the problem. The problem: the timer needs to be called even during standby and sleep mode. Simply switching off the sleep mode is not really an option, since the app needs to comply to windows marketplace for mobiles requirements, and regarding to requirement 5.2 a m...

How to make PHP code work without direct calls (on some kind of timer)?

So... for example I want to add to 1 five every 5 minuts (1 is in the DB)... With out direct calls from users.... So... How to make PHP code work without direct calls (on some kind of timer)? ...

Android - Controlling a task with Timer and TimerTask?

Hi all, I am currently tryinging to set up a Wifi Scan in my Android application that scans for Wifi access points every 30 seconds. I have used Timer and TimerTask to get the scan running correctly at the intervals I require. However I want to be able to stop and start the scanning when the user presses a button and I am currently ha...

Refresh test file like console app. But How?

i need your help! if my codes runs, Console appears and write datetime.now line by line, but if i open my txt(TextFile1.txt) . i don't see console command results. console result in black pad 22:30 29.01.2010 22:31 29.01.2010 22:32 29.01.2010 22:33 29.01.2010 BUT; on the other hand; if i open textfile (Textfile1.txt), i see only...

.NET Timer controls run faster while the window is minimized

It's actually a noticeable difference that I've seen but cannot explain. These timers have intervals set to 1ms (the lowest available), but while it's minimized, it seems to tick faster? Could anyone explain this phenomenon to me? And if possible, explain how to reproduce the effect while the window is maximized? ...

as3 dropping objects at random

Hey, I have a code here that drops a first row then drops a second row down right after. First row drops right away and second row is on a timer. // Bring in first row var blueY:Tween = new Tween(blue, "y", Bounce.easeOut, -295, -49, 2, true); var pinkertonY:Tween = new Tween(pinkerton, "y", Bounce.easeOut, -295, -49, 2, true); var odd...

What's the easiest way to call a function every 5 seconds in jQuery?

I'm looking to automate the changing of images in a slideshow. I'd rather not install any 3rd party plugins if possible. Thanks. ...

Cron syntax with Java EE 5?

Timer Tasks in Java EE are not very comfortable. Is there any util, to configure timer with cron syntax like "0 20 20 * * "? I wonder, if it would be a good way to use Quartzinside (clustered) JEE application. According to http://www.prozesse-und-systeme.de/serverClustering.html (german page) there limits with Quartz and Java EE cluster...

Setup timed events in WPF

How can I setup events that happen after a certain period of time. Like saving changes every 30 seconds? ...

C: Part of the code doesn't execute under select()

I have something like this: #define QUIT_TIME 5 int main(int argc, char **argv) { //... SOCKETS STUFF .... fdmax = parentfd; while (notdone) { //Set the timers waitd.tv_sec = 1; waitd.tv_usec = 0; FD_ZERO(&tempreadfds); FD_ZERO(&tempwritefds); FD_ZERO(&readfds); ...

Time tracking for Redmine?

We just deployed Redmine, but got one problem. There is no easy way to track time spent for project/bug. There is a Redmine Client app, but it is not working with latest redmine. If a developer is not included in single project, app crashes with 403 error, can't edit time correctly (http://server/projects/12/timelog/edit), problem with ...

Why does System.Threading.Timer stop on its own?

Hi there, I'm doing a small test project before I use System.Threading.Timer in a Windows Service project. It's working wonderfully, however the timer stops on its own after a minute or two. The full source for the test project is: using System; using System.Windows.Forms; using System.Threading; namespace studyTimers { public pa...

Timer in Web Application

I'm trying to create a web based test (as in exam) application with CakePHP. When a test is started the webserver stores the exact start time in session. When the test ended and the client submit the answers to the webserver, the webserver will recheck the submission time with the previous start time. If the total test time is within a ...

Flex - Timer event changes cursor

I have a timer event that updates certain things in my app (from a PHP Service) every 5 seconds. Every time this timer ticks, it makes the cursor blink to a clock and then back to the arrow. Since this is happening every 5 seconds, it gets pretty annoying. Is there a way for me to prevent the cursor from changing when the timer ticks?...

jQuery timers messing up after couple cycles

Hey, I have a jQuery timer going and it seems to mess up after 2 cycles: treethink.treethink.net/backup Right now, on different timers it will retract the news ticker and change which div is showing then pop it out again. After a couple cycles, which you can see in the link above, some stay longer and then overlap and it becomes a mess...

jQuery pick next div in a list to show

Hey, I have some jQuery going here: $('#ticker1').hide(); $('#ticker2').hide(); $('#ticker3').hide(); $("#ticker").oneTime(2000,function(i) { /* Do the first pull out once */ var randomNum = Math.floor(Math.random()*3); /* Pick random div to show */ $('div#ticker div:eq(' + randomNum + ')').show(); $("#ticker").animate({...

How to generate random numbers at set time intervals?

I have developed code in Java for generating ten random numbers from a range 0 to 99. The problem is I need to generate a random number for every 2 min. I am new to this area and need your views. ...

Timers not running in Windows Service Application

Hello I had an application which reads some data from a web database and updates the local database - on a periodic basis. Say every 5 mins. This was in the form of an interactive windows application. But since this application has to run continuously, we decided to make a Windows Service Application. We were using timers in the appli...