From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dbbb936609f82bbd,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-09 07:06:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!erinews.ericsson.se!newstoo.ericsson.se!not-for-mail From: "Sebastian" Newsgroups: comp.lang.ada Subject: Time_Span and Hardware resolutions Date: Mon, 9 Dec 2002 16:05:28 +0100 Organization: ericsson Message-ID: Reply-To: "Sebastian" NNTP-Posting-Host: 172.17.82.166 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Xref: archiver1.google.com comp.lang.ada:31588 Date: 2002-12-09T16:05:28+01:00 List-Id: Hi, I have a problem that I don't really know how to solve. I have a Ada.Real_Time.Time_Span parameter as an in parameter to a procedure. Now I would like to convert the value of that parameter to match the resolution that my hardware requires. For example: If I get 37 milliseconds as a parameter I must convert the value of that to be in steps of 100 us (microseconds). My hardware register has a resolution of 100 us per LSB.... How shall I do that? I havent found any good examples that shows how Time_Span works.... Happy for any suggestions... /S