improve time measure.py

- pass number of runs
- calculate std deviation