[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom ["Srinivasa A. Shikaripura" <srinivasa.shikaripura@wipr (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom ["Srinivasa A. Shikaripura" <srinivasa.shikaripura@wipr (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Thu, 7 Jun 2001 19:05:59 +0200 (CEST)
>From owner-rtl Thu Jun 7 02:25:09 2001
Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f578P5C24489
for <rtl@fsmlabs.com>; Thu, 7 Jun 2001 02:25:06 -0600
Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23])
by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id f57Icxj00947
for <rtl@fsmlabs.com>; Thu, 7 Jun 2001 13:39:00 -0500 (GMT)
Received: from ecvwall1.wipro.com ([192.168.181.23]) by
ecmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP
id GEJQJL00.HSZ for <rtl@fsmlabs.com>; Thu, 7 Jun 2001 11:41:45 +0530
Received: from wipro.com ([192.11.248.202]) by
itplmail.mail.wipro.com (Netscape Messaging Server 4.15) with
ESMTP id GEJQI000.OS9 for <rtl@fsmlabs.com>; Thu, 7 Jun 2001
11:40:48 +0530
Message-ID: <3B1F1B69.F9FD698A@wipro.com>
Date: Thu, 07 Jun 2001 11:42:57 +0530
From: "Srinivasa A. Shikaripura" <srinivasa.shikaripura@wipro.com>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: rtl@fsmlabs.com
Subject: Re: [rtl] Getting current day and time under RTLinux
References: <C1256A63.00359A39.00@bemail04.net.alcatel.be>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I am not sure about the do_gettimeofday_nolock() call regarding
resolution and space/time efficiency.
My suggestion would be, you could use the high resolution timers
available with the processor. If you are using MPC8xx or Pentium
class of processor, these high res timer registers are avilable.
You could read them to get nano-second precision.
Search in http://linux-mag.com/ article where one article which
gives the assembly snipets of using these registers and discusses
cost effectiveness of such code.
Hope this helps,
-Sas
Laurent.Kersten@alcatel.be wrote:
>
> RTAI have do_gettimeofday_nolock which is a RT compatible variable of the kernel function do_gettimeofday, however, I have no idea how precise is it actually, I would suspect a resolution of about 10ms (linux tick). but I have no ideas of the actual
> precision.
>
> Laurent
>
> "Marc LE DOUARAIN" <mledouarain@garbarini.com> on 06/05/2001 05:38:40 PM
>
> Please respond to rtl@fsmlabs.com
>
>
>
> To: rtl@fsmlabs.com
>
> cc: (bcc: Laurent KERSTEN/BE/ALCATEL)
>
>
>
> Subject: [rtl] Getting current day and time under RTLinux
>
>
> Hello Mailing-List !
>
> How can I get time (day, month, year + hour, min, sec) under a RTLinux thread?
> I know the classic functions under Linux : gmtime() , localtime() , time() ... but under RTLinux?
>
> Many thanks for help.
>
> ----- End of forwarded message from owner-rtl@fsmlabs.com -----
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
>
> ----- End of forwarded message from owner-rtl@fsmlabs.com -----
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/