Gentoo Archives: gentoo-embedded

From: "Morgan
To: gentoo-embedded@l.g.o
Subject: RE: [gentoo-embedded] more than 1s precise time
Date: Wed, 11 Oct 2006 18:53:32
Message-Id: F23B2C80E3825F47B93655363249D0570BEA7B@0695-its-exmp01.us.saic.com
1 There are many methods to accomplish the task you have presented. The
2 first an probably most used is gettimeofday. You have clock_gettime so
3 you can select what time source you would like to reference. You also
4 have Assessors for the RTC system. It all depends on what it is you
5 would like to do. My advice is check out man 7 time.
6
7 Austin Morgan
8
9 -----Original Message-----
10 From: gentoo-embedded+bounces-1351-AUSTIN.D.MORGAN=saic.com@g.o
11 [mailto:gentoo-embedded+bounces-1351-AUSTIN.D.MORGAN=saic.com@g.o
12 ] On Behalf Of Jakub Ladman
13 Sent: Wednesday, October 11, 2006 9:43 AM
14 To: gentoo-embedded@l.g.o
15 Subject: [gentoo-embedded] more than 1s precise time
16
17
18 Hi there.
19
20 Please excuse me my OT question.
21
22 Please let me know how to get at least 0.1 second precise time. I do not
23 need
24 any relation with real time, it may be time from system start or vice
25 versa. I need to store time to compare it with newer value in the future
26 to detect
27 timeouts.
28
29 Can you help me?
30
31 Jakub Ladman
32 --
33 gentoo-embedded@g.o mailing list
34
35 --
36 gentoo-embedded@g.o mailing list