Link to home
Start Free TrialLog in
Avatar of DanFlyBoy
DanFlyBoy

asked on

creating a timer in useing C lang.

I want to create a timer using C.  It would start by a decision such as if ( 1 -- 1) {start timer}.
It would be represented as mnutes and seconds,  10:00 down to 00:00 and then reset.
Avatar of josgood
josgood
Flag of United States of America image

A few questions:
1)  Does this need to be portable?
2)  If not, what operating system are you using?
3)  What resolution do you need?  
4)  Is this a simple example program or do you have other threads running?
If you are running Windows, then
    http://msdn2.microsoft.com/en-us/library/ms644900.aspx
is a good reference.
Avatar of DanFlyBoy
DanFlyBoy

ASKER

The operating system is VXWorks, runnung on a power pc processor.  I am using c as the lanugauge.
I'm afraid someone else will need to help.  Sorry.
the code should be like a stopwatch, once decsion is made to start timer, it should count down like a stop watch froom 10:00 to 0.  Time will be displayed on screen.
ASKER CERTIFIED SOLUTION
Avatar of josgood
josgood
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial