Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Timer in C

diddididdi Member Posts: 1
Hi!

I would like to know how to create a timer or such in C (unix).
something like
"Enter password within 10 seconds: "
"Enter password within 9 seconds: "
"Enter password within 8 seconds: "

without having a new row each time ofcourse.
Or to create a progressbar "[======> ]" that will automatically update on the same place!

Anyone : )?

Thanks in advance!

/ Diddi

Comments

  • kevanwoodcockkevanwoodcock Member Posts: 172
    : Hi!
    :
    : I would like to know how to create a timer or such in C (unix).
    : something like
    : "Enter password within 10 seconds: "
    : "Enter password within 9 seconds: "
    : "Enter password within 8 seconds: "
    :
    : without having a new row each time ofcourse.
    : Or to create a progressbar "[======> ]" that will automatically update on the same place!
    :
    : Anyone : )?
    :
    : Thanks in advance!
    :
    : / Diddi
    :

    Hi
    There are timer functions, takea look at my code, it will point you in the rite direction. Sorry the code is a little messy, but i hope it helps.

    : [code]
    #include
Sign In or Register to comment.