Questions tagged [timed-events]

23 questions
8
votes
2 answers

Is unit testing timed-interval actions with Thread.Sleep bad?

If I have an subject under test with a timer that causes some action to be taken at a timed interval, what's a good way to test that? One method is to wrap the timer in an interface and inject it as a dependency. However, I'd like to avoid creating…
Jeff B
  • 8,572
  • 17
  • 61
  • 140
7
votes
1 answer

Problems getting timed events in Flurry Analytics to work

I have already checked out this link and followed the instructions exactly: Can Flurry analytics provide average of integer information? Have also read the instructions from Flurry, provided when downloading the SDK. I am putting in a…
marhol682
  • 91
  • 1
  • 3
4
votes
2 answers

jquery how to fire the same event every 5 seconds

I've built a simple carousel with left and right scroll. Now I want to scroll automatically every 5 seconds. Here's my code: function carousel(){ $j('#carousel_ul li:first').before($j('#carousel_ul li:last')); $j('#right_scroll…
Mauro74
  • 4,686
  • 15
  • 58
  • 80
4
votes
1 answer

Listening and Firing an Event on a Particaular Date in Laravel

I am trying to Make a Notification Script for my own use. Here is What I am trying to achieve. When user is Registering I am grabbing their email address and the notification date which is given by them and saving these in the profile table. Now on…
3
votes
3 answers

python timed execution of code

I want to execute a piece of my code in exactly the same time every time I execute it, somewhat like playing a media file... (the same piece of code is executed in exactly the same amount of time every time) Is this possible in python?
Pushpak Dagade
  • 6,280
  • 7
  • 28
  • 41
2
votes
0 answers

What will happen if i call endTimedEvent without logging a timed event in flurry analytics Android?

I am using flurry analytics for android.I want to log how much time user spends on each section of multitab view containig (for example) 5 tabs.thus i will have to use " endTimedEvent " for different sections.now i want to end the timer for all…
Ryhot
  • 325
  • 4
  • 12
1
vote
1 answer

Using timed events in BlackBerry

is it possible to fire up an event at a specified time interval in BlackBerry? I'm looking for something similar to AlarmManager class in Android (if anyone is familiar with it). The goal is to is to run some code, even when the application is not…
kajman
  • 1,066
  • 11
  • 24
1
vote
1 answer

Triggering a MySQL procedure at a timed interval

I am wondering if there is a way to trigger a procedure by a timed interval. I am trying to create new tables dynamically and have the procedure written to do so, I just need a way to trigger it. I can easily write a python script and run it as a…
Richard
  • 15,152
  • 31
  • 85
  • 111
1
vote
1 answer

Can't change background color out of TimedEvent();

in my C# WPF project I have a timed Event. Inside the timedEvent I have multiple try catch function. For example this: try { StreamWriter sw = new StreamWriter("Dateien/DB/Box" + boxnumber + "_Abwesenheit.txt", true,…
1
vote
1 answer

Having a slight problem moving my camera based on time passed using GLUT/OpenGL

Before anyone asks, this is for a university project and I have to use GLUT. I'm not tagging this as homework because this is not a requirement, nor will I have extra points for this. With GLUT, for people unaware, you have: glutIdleFunc(func):…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
1
vote
0 answers

The default CLR host gives "ProcessExit event handlers" 2 seconds per domain?

In the C# 7.0 in a Nutshell book, I've read something that seems a bit confusing. Unlike with the DomainUnload event, ProcessExit event handlers are timed: the default CLR host gives event handlers two seconds per domain, and three seconds in…
Emran
  • 544
  • 7
  • 26
0
votes
2 answers

Setting DateTimePicker closes application only when triggered from timed action

I have a function in C# which, at the outset, sets the value of a GUI DateTimePicker object to today's date (time = midnight), then does other stuff. When executed via GUI button, the function (DBIO_Morning) runs fine. But, executed via timed…
Jack Huang
  • 531
  • 1
  • 5
  • 12
0
votes
0 answers

cox time_dependent and ID

i have two measurement times for a creatinine score, at recruitment and 2 months later. i have 330 participants: 80 die before 2 months. 230 were able to complete the second measurement. in total, 120 of my 330 participants died. When I carry out my…
mumber1
  • 15
  • 4
0
votes
1 answer

Hide page content until specific time in video

My staff and I have been researching how to set up a page to have hidden content, that appears at a specific point in a Youtube video. We got there quickly at first by using the settimeout() function, but this just goes by elapsed time, not the time…
0
votes
0 answers

cox analysis time dependant R

I create my table to make an analysis cox survival time-dependant (with t start and t stop for each ID) my variable dependant is death and my variable independent is a score So i look the document R about this type of analysis but when i run the…
mumber1
  • 15
  • 4
1
2