Luis Valencia
Luis Valencia

Reputation: 34008

How to read this tiny time number, and whats the improvement between these 2 times

I developed something in c sharp, one option without caching and 2nd option with caching.

Without caching the time returned by the app is: : 00:00:00.3873553 How do I read that? its that 387 milliseconds?

With caching: 00:00:00.0000176

Is this nanoseconds, microseconds? how can I read this?

Now, If I want to compare both, whats the % improvement?

Upvotes: 0

Views: 43

Answers (1)

Arno
Arno

Reputation: 5194

The fractionall part represents milliseconds. Four heading zeros in 0000176 are indicating a value of 0.0176 ms.

387 ms is 21988 times 0.0176 ms. With caching you need 0.0045% of the time.

Upvotes: 1

Related Questions