Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How can I make a countdown timer with pic and voice

$
0
0

@maomao wrote:

Hi there
I want to make a countdown timer to let the system begin like 3,2,1 go! with the pic of number and voice.
I have try to use the time(0) to count but it does not work well. So how can I do it.
And then when the system has begin I want to save the date for 10 sec too.

include

include

int main()
{
time_t last = time(0);
time_t next;
int pastSec = 0;

while(1)
{
if (time(&next) != last)
{ last = next;
pastSec++;
}
}

return 0;
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles