Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: Re: Re: Measuring packet tracing


Chronological Thread 
  • From: Thiago Ize < >
  • To: , Biagio Cosenza < >
  • Subject: [Manta] Re: Re: Re: Measuring packet tracing
  • Date: Thu, 02 Oct 2008 13:54:17 -0600

Hi Biagio,
How is this different from the high resolution timers already in manta? See Core/Util/CPUTime.cc for the code. These are what are used by the TimeViewSampler.

Thiago

Biagio Cosenza wrote:
" type="cite">
Thanks for your suggestions!

I have implemented a Timer class that uses an high resolution timer. In Pentium processor, it reads the current time-stamp counter variable with a specific instruction. It is based on Kazutomo's code http://www.mcs.anl.gov/~kazutomo/rdtsc.html .

As suggested by Abe, I also did a "scaling" of the given values.
Booth snapshots and code are enclosed. Maybe they can be useful to other people.

Thanks, Biagio

---
Biagio Cosenza
ISISLab, Dip. di Informatica ed Applicazioni "Renato M. Capocelli"
Universita' degli Studi di Salerno
http://www.dia.unisa.it/~cosenza



Archive powered by MHonArc 2.6.16.

Top of page