Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2005 23:22:09 +0100
From:      Marco Trentini <mark@remotelab.org>
To:        Ryan Sommers <ryans@gamersimpact.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: clock time in milliseconds into a c program
Message-ID:  <20050121222209.GA935@einstein.lab>
In-Reply-To: <41EF137D.1090100@gamersimpact.com>
References:  <20050120004406.GF921@einstein.lab> <41EF137D.1090100@gamersimpact.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 19, 2005 at 08:12:13PM -0600, Ryan Sommers wrote:
> Marco Trentini wrote:
> >Hi, I need to clock the function execution time into a C
> >program. I know /usr/include/time.h library but I need to
> >clock the time in milliseconds.
> >
> >Any suggestions, links?
> >
> 
> Are you looking for how long the processor spent executing your code? Or 
> the difference in wall time between when it enters the function and when 
> it exits the function?

Second one. I need to clock (in a freely way) how long few
linear algebraic functions spent computing the solution. I
understand your observations on this topic.  Anyway the
gettimeofday's solution is good for me, thanks all.

-- 
Marco Trentini                mark@remotelab.org
http://www.remotelab.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050121222209.GA935>