Realtimeclock

Hallo,
I have a question…
I want to use the realtimeclock from QNX to realise realtime…
How to use the clock from QNX?
Is That the right way?

Can someone help me, please…

Stefan

Stefan,
What exactly do you want? to use realtime clock chip (RTC hardware Motorolla MC146818 compatible in
x86), or you want to know actual time from program? or you want timers for your program?
Best regards,

Eduard.
ed1k at ukr dot net

Stefan Kehrein <stefankehrein@lycos.de> wrote in article <ah0kte$ohn$1@inn.qnx.com>…

Hallo,
I have a question…
I want to use the realtimeclock from QNX to realise realtime…
How to use the clock from QNX?
Is That the right way?

Can someone help me, please…

Stefan
\

Ok, my problem is,
I want to use the intern clock from qnx to realise realtime.
How can i use the clock or how can i check the clock?
I want to verify the realtime from qnx with small application…

I hope you understand me…( i know, my english is very bad ) :wink:

nice regards

Stefan

“ed1k” <ed1k@spamerstrap.com> schrieb im Newsbeitrag
news:01c22cbb$e2118260$106fa8c0@ED1K…

Stefan,
What exactly do you want? to use realtime clock chip (RTC hardware
Motorolla MC146818 compatible in
x86), or you want to know actual time from program? or you want timers for
your program?
Best regards,

Eduard.
ed1k at ukr dot net

Stefan Kehrein <> stefankehrein@lycos.de> > wrote in article
ah0kte$ohn$> 1@inn.qnx.com> >…
Hallo,
I have a question…
I want to use the realtimeclock from QNX to realise realtime…
How to use the clock from QNX?
Is That the right way?

Can someone help me, please…

Stefan
\

Stefan Kehrein <stefankehrein@lycos.de> wrote:

Ok, my problem is,
I want to use the intern clock from qnx to realise realtime.
How can i use the clock or how can i check the clock?
I want to verify the realtime from qnx with small application…

I hope you understand me…( i know, my english is very bad ) > :wink:

If all you want to do is tell what time it is “now”, just use the
time() function:

#include <stdio.h>
#include <time.h>

main ()
{
time_t now;
time (&now);
printf (“The time is now %s”, ctime (&now));
}

Cheers,
-RK


nice regards

Stefan

“ed1k” <> ed1k@spamerstrap.com> > schrieb im Newsbeitrag
news:01c22cbb$e2118260$106fa8c0@ED1K…
Stefan,
What exactly do you want? to use realtime clock chip (RTC hardware
Motorolla MC146818 compatible in
x86), or you want to know actual time from program? or you want timers for
your program?
Best regards,

Eduard.
ed1k at ukr dot net

Stefan Kehrein <> stefankehrein@lycos.de> > wrote in article
ah0kte$ohn$> 1@inn.qnx.com> >…
Hallo,
I have a question…
I want to use the realtimeclock from QNX to realise realtime…
How to use the clock from QNX?
Is That the right way?

Can someone help me, please…

Stefan

\


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Stefan,

I’m not sure I understand you right…

Ok, there are many articles about clock and realtime at QNX web site, please check out

http://www.qnx.com/developer/articles/

The mine of information about QNX Neutrino is Rober Krten’s book. Lucky for you there is “Clocks,
Timers and Getting a Kick Every So Often” chapter from this book at

http://www.parse.com/books/book_v3/sample.html

(it’s only sample chapter, buy the book, it’s a good buy :wink:)

Also, if you’re interested of usage of RTC hardware clock,
you could look at article about RTC clock (it’s in russian :slight_smile:)

http://qnx.org.ru/docs-devel/text_rtc.html

Or just grab the tarball of examples

ftp://ftp.qnx.org.ru/pub/projects/ed1k/clock.tgz

HTH,
Cheers,

Eduard.
ed1k at ukr dot net

Stefan Kehrein <stefankehrein@lycos.de> wrote in article <ah3gbn$3b4$1@inn.qnx.com>…

Ok, my problem is,
I want to use the intern clock from qnx to realise realtime.
How can i use the clock or how can i check the clock?
I want to verify the realtime from qnx with small application…

I hope you understand me…( i know, my english is very bad ) > :wink:

nice regards

Stefan

“ed1k” <> ed1k@spamerstrap.com> > schrieb im Newsbeitrag
news:01c22cbb$e2118260$106fa8c0@ED1K…
Stefan,
What exactly do you want? to use realtime clock chip (RTC hardware
Motorolla MC146818 compatible in
x86), or you want to know actual time from program? or you want timers for
your program?
Best regards,

Eduard.
ed1k at ukr dot net

Stefan Kehrein <> stefankehrein@lycos.de> > wrote in article
ah0kte$ohn$> 1@inn.qnx.com> >…
Hallo,
I have a question…
I want to use the realtimeclock from QNX to realise realtime…
How to use the clock from QNX?
Is That the right way?

Can someone help me, please…

Stefan



\