onesuper
onesuper

Reputation: 196

What is the precision of cudaEventElapsedTime()?

Say I invoke a cudaEventElapsedTime() and get the return value of 0.123456. Then what is the exact time it suggests?

Upvotes: 4

Views: 3556

Answers (1)

sgarizvi
sgarizvi

Reputation: 16796

As stated in the documentation, the function cudaEventElapsedTime returns the elapsed time between two events in milliseconds. It has resolution of about 0.5 microseconds.

So value 0.123456 indicates that the elapsed time between the specified events is 0.123456 milliseconds.

Upvotes: 8

Related Questions