Question: I wrote some functions to benchmark a function/piece of code. I do it like this:

```
start = timer
for(1 second)
   call fun
   iterations++
stop = timer

```

And then I have a MEAN (AVERAGE) time: (stop-start/iterations), right?

Single call is too 'short' to measure, so how can I calculate from this type of measurement, std dev, quartile, etc ... ?

Answer: 
Standard deviation and quartiles both deal with the distribution of values in a group.

With only one measurement, these become trivial or meaningless. Since there's only one measurement, that value is the mean, the minimum, the maximum, and the mode. Since none of the measurements deviate from the mean, the variance and standard deviation are zero.
You'll have to find a way to measure the time precisely enough. You'll need the times for individual calls to `fun` in order to get any meaningful standard deviation etc.

[This question](https://stackoverflow.com/questions/1487695/c-cross-platform-high-resolution-timer) may contain useful hints, and I'm sure there are quite a few platform-specific high-resolution timers out there as well.