From: moktar_bouain <moktarbouain@yahoo.fr>
To: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] measure the execution time of each thread
Date: Mon, 18 Apr 2011 22:01:00 -0000 [thread overview]
Message-ID: <31428080.post@talk.nabble.com> (raw)
In-Reply-To: <BANLkTinR_pespHp3+qQogT6kyUQVJHojDA@mail.gmail.com>
>http://ecos.sourceware.org/docs-latest/ref/kernel-clocks.html
>static cyg_tick_count_t run_time;
>cyg_tick_count_t start, end, run_time;
>while (1) {
> start = cyg_current_time();
><processing ...>
>end = cyg_current_time();
>run_time = end - start;
>}
>Then you just need to convert ticks to time, based on the tick rate
>for your platform.
Hi Mike,
Thank you for your reply.
I tried with your solution,but the value of run_time is always
constant.(run_time =1)
--
View this message in context: http://old.nabble.com/measure-the-execution-time-of-each-thread-tp31407684p31428080.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.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:[~2011-04-18 22:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-15 17:11 moktar_bouain
2011-04-18 17:03 ` Michael Bergandi
2011-04-18 22:01 ` moktar_bouain [this message]
2011-04-18 22:50 ` Gary Thomas
2011-04-18 23:32 ` moktar_bouain
2011-04-19 11:07 ` Gary Thomas
2011-04-22 23:00 ` moktar_bouain
2011-04-23 14:33 ` Gary Thomas
2011-04-23 15:07 ` moktar_bouain
2011-04-23 17:11 ` Gary Thomas
2011-04-24 22:22 ` moktar_bouain
2011-04-25 12:36 ` Gary Thomas
2011-04-28 2:39 ` moktar_bouain
2011-04-19 6:06 ` Yurij Grechishhev
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=31428080.post@talk.nabble.com \
--to=moktarbouain@yahoo.fr \
--cc=ecos-discuss@ecos.sourceware.org \
/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).