Questions tagged [time-measurement]

59 questions
0
votes
0 answers

PHPExcel report generation time

I have a report generator function in my controller. At the end of the function I'm placed a $before = microtime(true); Then I'm working with this PHPExcel, setting the headers, the result, which is 140 lines of data in the xml.…
Random Dude
  • 872
  • 1
  • 9
  • 24
0
votes
2 answers

Creating a DAX pattern that counts days between a date field and a month value on a chart's x-axis

I am struggling with a DAX pattern to allow me to plot an average duration value on a chart. Here is the problem: My dataset has a field called dtOpened which is a date value describing when something started, and I want to be able to calculate the…
Geoff
  • 3
  • 3
0
votes
1 answer

Delay added to sound

I'm going to write an application in Silverlight that consists of 2 threads, one that plays sound and another that records sound. And whatever is recorded will be what was played plus some ambient noise. The problem is that Silverlight adds a delay…
0
votes
2 answers

Huge differences in implementations?

I am writing a few functionalities for distributions and used the normal-distribution to run the tests between my implementation and C++ Boost. Given the Probability Density Function (pdf: http://www.mathworks.com/help/stats/normpdf.html) Which I…
Qohelet
  • 1,459
  • 4
  • 24
  • 41
0
votes
1 answer

Time slowed down using `S.D.Stopwatch` on Azure

I just ran some code which reports its performance on an Azure Web Sites instance; the result seemed a little off. I re-ran the operation, and indeed it seems consistent: System.Diagnostics.Stopwatch sees an execution time of 12 seconds for an…
tne
  • 7,071
  • 2
  • 45
  • 68
0
votes
1 answer

Questions on Measuring Time Using the CPU Clock

I'm aware of the standard methods of getting time deltas using CPU clock counters on various operating systems. My question is, how do such operating systems account for the change in CPU frequency for power saving purposes. I initially thought this…
Flayneorange
  • 228
  • 1
  • 9
0
votes
1 answer

How to gather timing information of keystrokes using C#?

I want to build a simple C# Windows Form Application that gathers user's keystrokes data. Basically, the user needs to type in a word with length 10. I want to record each key's holding time, keydown to keydown time and keyup and keydown for…
Freya Ren
  • 2,086
  • 6
  • 29
  • 39
0
votes
1 answer

measure duration of timer function

I have a timer function (for polling) that I want to call every 1uS but I also want to make sure that there is enough time for other tasks to run so I want to measure the time it takes to execute this function. For that I thought I could use…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
0
votes
1 answer

MonkeyTalk: Screen loading time, completion time/reaction time measurements?

Can latency measurements like screen loading time, completion time/reaction time/response time of any operation(like opening a URL, tapping on a button, deleting a message, navigating to the next screen) be done using MonkeyTalk? If it cannot be…
0
votes
2 answers

How to measure the download speed and size of a PHP document

Here is what I'm planning: My webpage is a simple filesharing system. I would like to show the download speed for the user. It is not 100%, but it's relative good. And i would like to write the time for downloading... example: your download speed is…
janos
  • 247
  • 2
  • 4
  • 11
0
votes
1 answer

Advice on information gathering and time measuring in a multithread system

I found myself stuck on an unconventional problem. I am to write a component in Java that will gather some information from a multi-thread system. I will appreciate any information or advice that could help me progress. Here are some…
alicjasalamon
  • 4,171
  • 15
  • 41
  • 65
0
votes
3 answers

Code optimization; measure time between code sections

I would like to see how long it takes for a certain method to execute in my android app. My first idea was to do something like this: Date date1 = new Date(); doStuff(); Date date2 = new Date(); //compare date difference in ms But for starters,…
Johan
  • 35,120
  • 54
  • 178
  • 293
-1
votes
2 answers

chrono give different measures at same function

i am trying to measure the execution time. i'm on windows 10 and use gcc compiler. start_t = chrono::system_clock::now(); tree->insert(); end_t = chrono::system_clock::now(); rslt_period = chrono::duration_cast(end_t -…
유일해
  • 1
  • 1
-7
votes
1 answer

Drawing a graph using executing time of a function in c++

I'm calling some functions several times(5000-10000) and measuring the time it takes to finish the execution of function each time. For example : Binary search with 10 ints , 11 ints, 1000 ints... Now I want to draw the graph of how much it takes to…
M4HdYaR
  • 1,124
  • 11
  • 27
1 2 3
4