* [gentoo-embedded] more than 1s precise time
@ 2006-10-11 14:43 Jakub Ladman
2006-10-12 3:22 ` KIMURA Masaru / hiyuh
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Ladman @ 2006-10-11 14:43 UTC (permalink / raw
To: gentoo-embedded
Hi there.
Please excuse me my OT question.
Please let me know how to get at least 0.1 second precise time. I do not need
any relation with real time, it may be time from system start or vice versa.
I need to store time to compare it with newer value in the future to detect
timeouts.
Can you help me?
Jakub Ladman
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [gentoo-embedded] more than 1s precise time
@ 2006-10-11 18:52 Morgan, Austin D.
0 siblings, 0 replies; 3+ messages in thread
From: Morgan, Austin D. @ 2006-10-11 18:52 UTC (permalink / raw
To: gentoo-embedded
There are many methods to accomplish the task you have presented. The
first an probably most used is gettimeofday. You have clock_gettime so
you can select what time source you would like to reference. You also
have Assessors for the RTC system. It all depends on what it is you
would like to do. My advice is check out man 7 time.
Austin Morgan
-----Original Message-----
From: gentoo-embedded+bounces-1351-AUSTIN.D.MORGAN=saic.com@gentoo.org
[mailto:gentoo-embedded+bounces-1351-AUSTIN.D.MORGAN=saic.com@gentoo.org
] On Behalf Of Jakub Ladman
Sent: Wednesday, October 11, 2006 9:43 AM
To: gentoo-embedded@lists.gentoo.org
Subject: [gentoo-embedded] more than 1s precise time
Hi there.
Please excuse me my OT question.
Please let me know how to get at least 0.1 second precise time. I do not
need
any relation with real time, it may be time from system start or vice
versa. I need to store time to compare it with newer value in the future
to detect
timeouts.
Can you help me?
Jakub Ladman
--
gentoo-embedded@gentoo.org mailing list
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-embedded] more than 1s precise time
2006-10-11 14:43 [gentoo-embedded] more than 1s precise time Jakub Ladman
@ 2006-10-12 3:22 ` KIMURA Masaru / hiyuh
0 siblings, 0 replies; 3+ messages in thread
From: KIMURA Masaru / hiyuh @ 2006-10-12 3:22 UTC (permalink / raw
To: gentoo-embedded
Hi,
2006/10/11, Jakub Ladman <ladmanj@volny.cz>:
> Hi there.
>
> Please excuse me my OT question.
>
> Please let me know how to get at least 0.1 second precise time. I do not need
> any relation with real time, it may be time from system start or vice versa.
> I need to store time to compare it with newer value in the future to detect
> timeouts.
[SNIP]
I like select(2) for non-realtime timeout functionalities.
See also, "man 2 select" and "man 2 select_tut".
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-12 3:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 14:43 [gentoo-embedded] more than 1s precise time Jakub Ladman
2006-10-12 3:22 ` KIMURA Masaru / hiyuh
-- strict thread matches above, loose matches on Subject: below --
2006-10-11 18:52 Morgan, Austin D.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox