mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Jan Lübbe" <jlu@pengutronix.de>
To: Daniel Schultz <d.schultz@phytec.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH v1] commands: Add dhrystone
Date: Mon, 27 Jul 2015 12:32:48 +0200	[thread overview]
Message-ID: <1437993168.26187.3.camel@pengutronix.de> (raw)
In-Reply-To: <55B22487.3050001@phytec.de>

On Fr, 2015-07-24 at 13:41 +0200, Daniel Schultz wrote:
> At the end of the do_dhrystone function:
> 
>      if (user_time < TOO_SMALL_TIME) {
>          number_of_runs = number_of_runs * 10;
>          new_argv[0] = argv[0];
>          sprintf(tmp_str, "%i", number_of_runs);
>          new_argv[1] = tmp_str;
>          printf("Measured time too small to obtain meaningful results\n");
>          printf("or a timer wrap happend. I will increase the number\n");
>          printf("of runs by *10 to %d\n", number_of_runs);
>          printf("user_time: %llu ns\n", user_time);
>          do_dhrystone(2, new_argv);
>          ...
> 
> I'm sure there is a better solution.

Why not just loop for a few seconds?

Regards,
Jan
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2015-07-27 10:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23  8:01 Daniel Schultz
2015-07-24  7:41 ` Sascha Hauer
2015-07-24 11:41   ` Daniel Schultz
2015-07-27 10:32     ` Jan Lübbe [this message]

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=1437993168.26187.3.camel@pengutronix.de \
    --to=jlu@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=d.schultz@phytec.de \
    /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