Questions tagged [measurement]
499 questions
6
votes
8 answers
Mips calculation for embedded software
I have been recently (and repeatedly) asked by customers about MIPS needed to run our software. Usually we was able to get rid of this questions by explaining the customer that this is really depend on the cpu/os/hw (our software is highly portable)…

Ilya
- 3,104
- 3
- 23
- 30
6
votes
2 answers
Measurement protocol not working for mobile app
I am trying to send data about screenview in my account Google Analytics, using measurement protocol.
But i don't see data in the Real Time reports.
string…

Nikolay
- 131
- 1
- 7
5
votes
2 answers
How to take F# measurements to get speedups
Assuming a single machine with 8 cores.
In Haskell, you can compile using the threaded option, then during runtime use +RTS -Nx to specify the number of cores to be used. e.g.
$ myprg args // sequential run
$ myprg args +RTS -N1 // parallel run on…

vis
- 2,279
- 1
- 19
- 27
5
votes
3 answers
Measuring short time intervals in C on Ubuntu / VMware
I am trying to measure short time intervals, in order few of milliseconds. This proves to be some nontrivial task, since the ubiquitous time() function works on whole seconds precision. After some research I came out with the four methods seen in…

ysap
- 7,723
- 7
- 59
- 122
5
votes
1 answer
Calculating homography matrix using arbitrary known geometrical relations
I am using OpenCV for an optical measurement system. I need to carry out a perspective transformation between two images, captured by a digital camera. In the field of view of the camera I placed a set of markers (which lie in a common plane), which…

Marcin
- 1,104
- 4
- 17
- 27
5
votes
3 answers
Representation of a Kilo/Mega/Tera Byte
I was getting a little confused with the representation of different units of bytes.
It is accepted throughout that 1 byte = 8 bits.
However, in a lot of sources I have seen that
1 kiloByte = 2^10 bytes = 1024 bytes
AND
1 kiloByte = 1000…

rrazd
- 1,741
- 2
- 32
- 47
5
votes
2 answers
Discrepancy in PTP (Precision Time Protocol) hardware Timestamping accuracy measurements
We are analyzing PTP for a control system software and measuring the accuracy of PTP clock synchronization with a small setup of 2 personal computers making one of them as a master and the other as slave. Our current setup is very crude and we do…

Dollyg
- 317
- 2
- 7
5
votes
1 answer
Measurement - get full unit name
I'm not sure how to use measurement to get full name of the unit. For example "kilometers" instead of "km".
let measurement = Measurement(value: 50, unit: UnitLength.meters)
let convertedMeasurement = measurement.converted(to:…

Nat
- 12,032
- 9
- 56
- 103
5
votes
3 answers
Why does TextRenderer.MeasureText not measure text correctly using larger fonts in C#?
What I am doing is getting the pixel size of a string and converting it to hundredths of an inch (ie. pixels/DPI = inches, inches * 100 = hundredths of an inch). Here is my code:
private static SizeF TextSize(string text, Font txtFnt)
{
SizeF…

Mike Webb
- 8,855
- 18
- 78
- 111
5
votes
1 answer
How to measure power consumption of my application on Android?
I have developed an Android application and I would like to know the power consumption of my app on an Android device. I came across various threads on Stack Overflow but none of them helped me.
Is there any application in Android which measures the…

John
- 565
- 8
- 23
5
votes
1 answer
What's the impact of insufficient space for shared memory file in Java HotSpot?
I have run a lot of experiments (months of cpu time) where I have the following warning in my log:
Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for
shared memory file
The experiments terminated without error, but now I wonder…

DaveFar
- 7,078
- 4
- 50
- 90
5
votes
1 answer
Google Measurement protocol returns GIF89a�����,D;
I'm saving impressions using the Google Measurement protocol API. It works fine but although i'm not echoing anything it returns GIF89a�����,D; which is visible on the page. Any idea how I can hide this?
I'm sending the data using a HTTP post…

Mirko
- 131
- 2
- 8
5
votes
4 answers
Units of measurement conversion logic in C#
I am adding a feature to my program in which the user will have the ability to change their unit of measurement at any time, and have the program recalculate their input and output.
If the user inputs say, 20lbs for an item, then decides he wants to…

EvanRyan
- 189
- 6
- 14
5
votes
1 answer
Paint.getTextWidths. What is advance width?
What is advance width?
The term comes up in the android class Paint, specifically the function getTextWidths().
The documentation states “Return the advance widths for the characters in the string”.
what is the “advance widths?”

agent8261
- 95
- 1
- 7
5
votes
1 answer
Low Pass Audio Filter, calculating RMS on iOS
I am working on an App for the iPad, and I want to analyze the Audio from a Video that I am playing. This is all going well, using the MTAudioProcessingTap.
Currently I have some test code to test/measure the volume of the left and right channel.…

Niek van der Steen
- 1,413
- 11
- 33