public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@cygnus.co.uk>
To: David Geng <deli.geng@ncl.ac.uk>
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] How to convert time tick to real time
Date: Fri, 03 Nov 2000 13:41:00 -0000	[thread overview]
Message-ID: <3A0330F5.65BB88BE@cygnus.co.uk> (raw)
In-Reply-To: <001601c045d9$9e8044c0$5210f080@ncl.ac.uk>

David Geng wrote:
> 
> Hi,
> 
> I'd like to know the time consumed in running certain code, in order to
> compare different platform as well as profile this code. I used clock() and
> cyg_current_time() to get the differential time. On my 133MHz SA1100 board
> the result is 29986 and 1794 respectively, while 2726 and 1001 on i386
> platform with 6x86CPU of 266MHz.
> 
> But, that is only system time, i.e., timer ticks passed. How can I convert
> it to real-time, such as second. I think there should be some system
> constant containing how many timer ticks within one second, or something
> like this. I can not find it, could any one help me?

You mean CLOCKS_PER_SEC as used with the ISO standard clock() function?

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

  reply	other threads:[~2000-11-03 13:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-03 13:04 David Geng
2000-11-03 13:41 ` Jonathan Larmour [this message]
2000-11-03 14:36 Fabrice Gautier
2000-11-03 14:51 ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A0330F5.65BB88BE@cygnus.co.uk \
    --to=jlarmour@cygnus.co.uk \
    --cc=deli.geng@ncl.ac.uk \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).