Questions tagged [timing]

timing is a numerical measurement of the how long it takes to execute an instruction or series of instructions

Timing is a numerical measurement of the how long it takes to execute an instruction or series of instructions. See also .

To get a better understanding of performance of a given code, it should be measured at several problem sizes and empirical orders of growth calculated.

1396 questions
-1
votes
1 answer

Plot 10 minute interval

I would like to plot - 10 minutes intervals - activities from time use diaries. 'UKTUS' records people activities for every 10 minutes defined by the data set as act1_1, act1_2, ... , act1_144 (144 columns, 1 each 10 minute interval). The rows…
-1
votes
1 answer

Timing processes in C#

I am developing a program in LinqPad that will scrub through files and return a csv of some information I am curious about. I need to track the time it takes for certain processes to execute and was trying to use the Stopwatch method to do…
-1
votes
3 answers

Strange behaviour in VHDL

I'm trying to integrate (sum) a 14-bit signal of ADC at 50 Mhz. The integration starts with rising edge of signal "trigger". If the integral reaches a defined threshold (6000000), a digital signal ("dout") should be set to 0 (which became 1 with…
j0hn
  • 1
  • 3
-1
votes
1 answer

how to get the current time without reloading the page every time?

Hello I learned how to get new date , hours and stuff, today i made a simple clock this is fine but i need to reload the page to get the current time, so how can i make it more realistic, i mean to display it as it's counting, would be much…
-1
votes
1 answer

Calculate simulated running time based on time complexity of the algorithm

How can we calculate the simulated running time of an algorithm based on its time complexity? For instance, if we know that the time complexity of an algorithm is O(n), then what will be its running time in a discrete event simulator? I believe the…
Andrei
  • 7,509
  • 7
  • 32
  • 63
-1
votes
2 answers

Getting the real, user, sys time of functions within a program

looking for assistance on getting the real, user, sys times of functions within my C program. For instance how long it took to read in a file. I have been looking at the #include and using the time() function with the -p flag but I am striking out…
LD50
  • 19
  • 3
-1
votes
1 answer

Page generated in 0.0xx seconds with Python Bottle

I'm using Python Bottle. What would be an efficient way to measure and display the page generation time? (i.e. more or less server time used) Of course, something like: start = time.time() ... generationtime = time.time() - start would work, but…
Basj
  • 41,386
  • 99
  • 383
  • 673
-1
votes
2 answers

C# Timing Loop Rate Inaccuracies

I'm trying to create a method in C# whereby I can repeatedly perform an action (in my particular application it's sending a UDP packet) at a targeted rate. I know that timer inaccuracy in C# will prevent the output from being precisely at the target…
pixsperdavid
  • 147
  • 3
  • 14
-1
votes
1 answer

does timed auto update methods in c# work on live environment

I have written a method to download some files from the internet(in my c#,mvc web project.). the same file should download each day between a specific time (because it updates).it works fine in the test environment. my problem is if the system is in…
bill
  • 854
  • 3
  • 17
  • 41
-1
votes
1 answer

Updated: How to hide marker from a marker array?

I have an array $d of postcodes, this generates markers of my google map. I want only show markers which were created less than 3 seconds, over 3 seconds will be hidden. $postcodes = array(); $diff = array(); // time difference variable …
user999
  • 53
  • 1
  • 3
  • 9
-1
votes
2 answers

Moving from C# to C++, QueryPerformanceCounter vs clock produce confusing results

In C# I am using the Stopwatch class. I can get the ticks, and milliseconds with no problems. Now that I am testing code while learning C++ I try to get measurements but I don't know where the results are that match the C# Stopwatch solution…
Raj Felix
  • 685
  • 5
  • 16
-1
votes
1 answer

NTP - Clock is not syncing to low stratum server

Issue Summary Open NTP - Version 4.2.6p3 - Clock is not syncing to low stratum server. Issue Description I am running a NTP Unicast Client in my Ubuntu system. I have 3 servers, Server1-Stratum=13, Server2-Stratum=5, Server3-Stratum=4. Clock is not…
Hakkim Ansari
  • 119
  • 3
  • 10
-1
votes
2 answers

How to fix clock hold in this code?

I'm trying to create a VGA driver in VHDL. I'm going for 640x480 @ 60 Hz, so I need 25 MHz and 31.5 KHz clocks. divider_h process is driven by 50 MHz clock and results in 25 MHz clock. On each tick of 25 MHz clock h_counter is incremented by process…
gronostaj
  • 2,231
  • 2
  • 23
  • 43
-1
votes
2 answers

Scheduling routines in C and timing requirements

I'm working on a C program that transmits samples over USB3 for a set period of time (1-10 us), and then receives samples for 100-1000 us. I have a rudimentary pthread implementation where the TX and RX routines are each handled as a thread. The…
user2742907
  • 87
  • 1
  • 11
-1
votes
1 answer

Execute code within a preset latency in php

I have to execute a piece of code in php and the code must be executed within 5 seconds. if it is not executed within 5 seconds, a message should be 'echo'. Help me please.