jfkong

inaccurate timer in CAL Samples

Discussion created by jfkong on Oct 17, 2008

In amdcal/samples/common/Timer.cpp   (AMD streaming SDK 1.2beta)

Timing is calculated using following statement:

(i64)s.tv_sec * 1000 + (i64)s.tv_usec/1000

This causes measured time round to 1ms (losing precision)

It is not a big deal. But it may affect time measurement when the actual time is around few ms.

Outcomes