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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ff7d8060c8210f40 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news3.google.com!homer!news.glorb.com!news-spur1.glorb.com!news.glorb.com!news2.arglkargh.de!news.karotte.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: real_time.clock is not monotonic Date: Thu, 22 Feb 2007 10:34:37 +0000 Organization: Pushface Message-ID: References: <1172074608.834181.198540@j27g2000cwj.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1172140478 378 62.49.19.209 (22 Feb 2007 10:34:38 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 22 Feb 2007 10:34:38 +0000 (UTC) Cancel-Lock: sha1:uvLltj869c5szbq4t7FA2Ud6cHY= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (darwin) Xref: g2news2.google.com comp.lang.ada:9401 Date: 2007-02-22T10:34:37+00:00 List-Id: Duncan Sands writes: >> ("rdtsc" & ASCII.LF & ASCII.HT & > > I think the user needs to have appropriate permissions > for this to work. In any case, the linux kernel time > support is getting a massive rework as we speak, so > hopefully everything will be perfect soon :) Works for ordinary users on Windows (certainly up to 2K) and on all the Linuxes I've tried it on (up to Ubunto DD). Much better of course to use OS facilities. But my primary interest was for a high resolution clock (1e-5 seconds or better), the monotonicity was incidental. I see that on Windows we have that already, lucky for those of us who have Windows as their development and target platform. On SPARC Solaris, there certainly are permission issues wrt the equivalent feature. I haven't tried rtdsc on x86 Solaris.