Questions tagged [countdown]

This tag refers to the process of counting down. In other words, the act of taking an initial value and then consistently subtracting a smaller value from it until the original value reaches a specified amount (usually 0).

Use this tag for questions that deal with counting down or countdown timers (a device that performs the countdown).

2279 questions
9
votes
2 answers

iPhone: NSTimer Countdown (Display Minutes:Seconds)

I have my timer code set up, and it's all kosher, but I want my label to display "Minutes : seconds" instead of just seconds. -(void)countDown{ time -= 1; theTimer.text = [NSString stringWithFormat:@"%i", time]; if(time == 0) { …
user298261
  • 422
  • 3
  • 17
9
votes
1 answer

Create a simple countdown in processing

I have searched up so many sites on Google to try and get this to work but NO ONE seems to have this anywhere , and if they do it's just NOT working with my program... What I am trying to achieve is to have a player recoil that when the player gets…
D34thSt4lker
  • 447
  • 1
  • 5
  • 12
8
votes
7 answers

How can I make a 10 second countdown timer before a download button link appears?

On a download page, I would like to have it so that when the page loads, a 10 second timer automatically starts. On the page, I would like some text to say something like "You can begin your download in 10 seconds..." Then, after the time is up a…
Omar
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

Angular 2 multiple countdown pipe

I'm looking to create angular 2/4 countdown pipe. Of course I can make individual countdowns, but how do I create multiple ones? I want the following input: Countdown will count here for example:
maria
  • 207
  • 5
  • 22
  • 56
8
votes
4 answers

Why won't my countdown timer start and stop?

I need to make a simple countdown timer from 5 to zero, with the buttons to START and STOP the counter. The only thing that I don't know is that why won't my counter stop. The code is presented below: function clock() { var myTimer =…
Tommi Tiihonen
  • 89
  • 1
  • 1
  • 6
8
votes
4 answers

Swift countdown timer- displays days hours seconds remaining

Hello I am very new to swift and I was trying to create an app that counts down to an event on a specific date. I want it to show the number of days hours and seconds left until the specified date but I cannot figure out how to do this. Please help!…
jss0199
  • 89
  • 1
  • 1
  • 3
8
votes
2 answers

How to implement a resetable countdown timer with a GenServer in Elixir or Erlang

How do we implement a reset-able countdown timer with a GenServer? 1) perform a task after fixed amount of time, say every 60 seconds 2) have a way to reset the countdown back to 60 seconds before the timer elapses I have looked at How to perform…
Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
8
votes
6 answers

How to handle multiple countdown timers in RecyclerView?

I have a Recyclerview , and I need to display a countdown on every row. Here is a similar question coutndown timers in listview It has a good solution , but I need that with recyclerview Edit: Here is my code Adapter MyAdapter: public class…
8
votes
1 answer

Android Countdown Timer Circular Progress Bar doesn't match with timer

Hi can anyone help me on my small project please, I have been following this Tutorial and I got to the part where I insert 1 Minute into the EditText the Progress Bar works fine 1 Progress per sec but when I put in more than 1 Minute into the…
Nazmul Hasan
  • 113
  • 1
  • 1
  • 8
8
votes
1 answer

Python Get Date In Future (x) Days, And Hours Left To Date?

How can I get date + time in the future from now by days? in this format: 10/08/2013 9:50 PM (dd/mm/yyyy) and also I would like Time left to date in hours for this new future date?
user861555
8
votes
0 answers

countdown in the time field of a notification

I'm working with Notification and I would like to use a function such as setUsesChronometer, it displays a chronometer in the top right corner of the notification. The thing is I would like to use a count-down instead of a count-up. How can I do…
8
votes
5 answers

JQuery Countdown Plugin (by Keith Wood) does not work on chrome Version 24.0.1312.52

I have been using the jQuery Countdown Plugin by Keith Wood and it has been working absolutely fine up till Chrome version 23. However, I recently upgraded my browser to version 24.0.1312.52, now the timer has stopped updating. Instead, the time is…
Ankit Garg
  • 709
  • 1
  • 11
  • 26
7
votes
1 answer

Wait 5 seconds in Universal App

I need to make a pause in a Windows 10 UWP App. And the only thing i want is to wait 5 seconds to do the next action. I tried Task. Sleep but then the pressed button was frozen... Pause should be here: loading.IsActive = true; //int period =…
lostluke
  • 155
  • 1
  • 4
  • 13
7
votes
1 answer

How to use asynctask to display a progress bar that counts down?

In my application i want the user to press a button and then wait 5 mins. i know this sounds terrible but just go with it. The time remaining in the 5 min wait period should be displayed in the progress bar. I was using a CountDownTimer with a text…
wyatt
  • 495
  • 2
  • 6
  • 16
6
votes
1 answer

React - 5 seconds countdown with hooks

I'm trying to implement a 5 seconds countdown using hooks in react. On others answers, the solution is to implement setInterval with React.useEffect, but I'd like to let the final user to trigger the countdown with a button. Then, at the end of the…
Francesco Clementi
  • 1,874
  • 4
  • 13
  • 28