This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Functions to consume CPU time in x86
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] Functions to consume CPU time in x86
- From: Cristiano Ligieri Pereira <cpereira at ics dot uci dot edu>
- Date: Wed, 28 Mar 2001 11:26:22 -0800 (PST)
And of course I want to be able to specify that I want to keep the CPU
busy for specific X (mili/nano)seconds and not only keep it busy for some
randon amount of time.
I looking for functions like this.
consume10ns() or consume1ns()
or consume1ms() or consume10ms()
Thanks again,
Cristiano.
------------------------------------------------------------
Cristiano Ligieri Pereira - http://www.ics.uci.edu/~cpereira
On Wed, 28 Mar 2001, Cristiano Ligieri Pereira wrote:
>
> Hi all,
>
> I need to implement some functions to keep the CPU busy for some amounts
> of time. I know that one way to do that is to build loops that do nothing
> other than keep the CPU busy. I would like to have functions to consume
> hundreds or thousands of nanoseconds of CPU time in x86 platform. Has
> anyone done this before? If so, would you be up to provide me such
> functions?
>
> Thanks a lot,
>
> Cristiano.
>
> ------------------------------------------------------------
> Cristiano Ligieri Pereira - http://www.ics.uci.edu/~cpereira
>
>
>