From: Grant Edwards <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Re: minimum execution time with ecos
Date: Fri, 13 Apr 2007 14:50:00 -0000 [thread overview]
Message-ID: <evo5ag$ake$4@sea.gmane.org> (raw)
In-Reply-To: <evo4kr$ake$2@sea.gmane.org>
On 2007-04-13, Grant Edwards <grante@visi.com> wrote:
> On 2007-04-13, M Arshad Khan <marshadkhan@gmail.com> wrote:
>> i want to run a simulation on ecos that will run in less then
>> a tick(10mSec), is it possible and want to find its exact
>> execution time.. how to find that.
>
> That's a completely different question. The minimum delay has
> nothing to do with the granularity with which you can measure
> time. There's a call you can make to return the number of
> hardware timer counts since the last system timer tick.
I forgot to mention -- the granularity of that method is also
platform dependant, but it's also probably on the order of tens
or hundreds of nanoseconds.
Again, you should look at the tm_basic sources, they do exactly
what you're trying to do: measure the execution time of a
function.
--
Grant Edwards grante Yow! I brought my BOWLING
at BALL -- and some DRUGS!!
visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2007-04-13 14:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-13 10:40 [ECOS] " M Arshad Khan
2007-04-13 14:38 ` [ECOS] " Grant Edwards
2007-04-13 14:50 ` Grant Edwards [this message]
2007-04-16 9:33 ` [ECOS] " Chris Zimman
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='evo5ag$ake$4@sea.gmane.org' \
--to=grante@visi.com \
--cc=ecos-discuss@sources.redhat.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).