Questions tagged [measurement]

499 questions
28
votes
9 answers

Pixel to Centimeter?

I just want to know if the pixel unit is something that doesn't change, and if we can convert from pixels to let's say centimeters ?
Nassif Bourguig
  • 755
  • 1
  • 10
  • 10
26
votes
4 answers

Measuring Java execution time, memory usage and CPU load for a code segment

For a particular segment of Java code, I'd like to measure: Execution time (most likely thread execution time) Memory usage CPU load (specifically attributable to the code segment) I'm a relative Java novice and am not familiar with how this might…
Jon Cram
  • 16,609
  • 24
  • 76
  • 107
21
votes
3 answers

how do we investigate how many times a browser is doing reflows?

Is there a web developer functionality/tool that allows us to know how many times a browser is doing reflows? basically I want to have some sort of feedback/information. I don't know how it will be, but perhaps some sort of performance graph that…
Pacerier
  • 86,231
  • 106
  • 366
  • 634
19
votes
4 answers

How to measure screen render time in WPF

I am attempting to measure the performance for a WPF based application. Currently we have code that times how long it takes to add the content to the WPF render tree. At this point, control is returned to our program. The problem is that there is…
19
votes
2 answers

Get The Measures of Popup Window

I already set up the pop up window, but i want to center it below the button (View v), that needs to be clicked to open it: public void showPopup(Context c, View v){ int[] location = new int[2]; v.getLocationOnScreen(location); …
jns
  • 1,250
  • 1
  • 13
  • 29
18
votes
4 answers

How do you measure latency in low-latency environments?

Here's the setup... Your system is receiving a stream of data that contains discrete messages (usually between 32-128 bytes per message). As part of your processing pipeline, each message passes through two physically separate applications which…
Ajaxx
  • 2,500
  • 4
  • 27
  • 38
17
votes
5 answers

Precise time measurement in Java

Java gives access to two method to get the current time: System.nanoTime() and System.currentTimeMillis(). The first one gives a result in nanoseconds, but the actual accuracy is much worse than that (many microseconds). Is the JVM already providing…
penpen
  • 730
  • 1
  • 5
  • 10
16
votes
2 answers

Using Mercurial, how can I measure individual contributions?

My team is using Mercurial, and I would like to know the relative contributions by each team member. I know that we cannot measure productivity by lines of code, but I would like to see if each person at least contributed something, even if it was…
Paul Gestwicki
  • 1,610
  • 1
  • 15
  • 18
15
votes
3 answers

measure text height on an html5 canvas element

I know I can use context.measureText to get the width of some text if it would now be rendered on the canvas. Is there a way to do the same but get the text's height? just a thought to myself - maybe I can rotate the text 90Deg and then test for the…
epeleg
  • 10,347
  • 17
  • 101
  • 151
14
votes
4 answers

Measuring performance in Python

I'm writing a web-application in Python, I haven't decided if I want to use Flask, web.py or something else yet, and I want to be able to do profile on the live application. There seems to be very little information on how you go about implementing…
14
votes
4 answers

How to get a program's running time in Haskell

How can I go about getting a program's running time through system time functions in Haskell? I would like to measure the execution time of a whole program and/or an individual function.
user645466
14
votes
2 answers

How to measure the speed of an Arduino function's execution?

I need to determine the speed with which Arduino executes a certain function. What would be the best time to do that? So far I found something with a Stopwatch class, but I'm wondering if there's any native method to do that.
Eugen
  • 1,537
  • 7
  • 29
  • 57
12
votes
3 answers

How to get InfluxDB measurement size?

I have a an InfluxDB measurement named kpi. I want to get the size of that single measurement in MB. So far I have tried: du -sh /var/lib/influxdb/data/demo/ 27M /var/lib/influxdb/data/demo/ But this command gives me the size of the whole…
Shubham Bansal
  • 121
  • 1
  • 1
  • 4
12
votes
1 answer

Precision Measurement with Opencv python

I am actually working on a Machine Vision project using OpenCV and Python. Objective : The objective of the project is to measure the dimensions of a component with high accuracy. Main Hardware : Basler 5MP camera (aca-2500-14gm) A red backlight…
Abhijit Balaji
  • 1,870
  • 4
  • 17
  • 40
12
votes
3 answers

Difficulties to measure C/C++ performance

I wrote a piece of C code to show a point in a discussion about optimizations and branch prediction. Then I noticed even more diverse outcome than I did expect. My goal was to write it in a language that is common subset between C++ and C, that is…
Öö Tiib
  • 10,809
  • 25
  • 44
1
2
3
33 34