Questions tagged [elapsedtime]

The time that elapses while some event is occurring.

Elapsed time is the time or difference between a beginning time and an ending time.

196 questions
2
votes
1 answer

Elapsed time in R - min, max

I need to compare two functions in terms of elapsed time. At the moment I am using the following code: system.time(f1()) system.time(f2()) And if I want to run the same functions multiple times I use: system.time(replicate(10,…
Nick
  • 10,309
  • 21
  • 97
  • 201
2
votes
1 answer

Show elapsed time of a function inside Task.Run C#

I want to show in textbox the time execution of a function that is called using Task.Run, since takes some time to complete and I'd created a thread for that. The issue is when I click on begin button is printed inmediately the time in textBox1 and…
Sarmeu
  • 95
  • 1
  • 3
  • 9
2
votes
1 answer

How to implement elapsed time by jiffies

I would like to understand how can I implement elapsed time using jiffies in C. Let's suppose that I have a series of instructions #include unsigned long js,je,diff; /***Start Time***/ /*Series of instructions*/ /***End…
Develobeer
  • 425
  • 1
  • 8
  • 19
2
votes
0 answers

How to c# several accurate timers (exactly for 10 milliseconds interval)

I've started the a desktop app development in C# (VS2010 .Net Fw 4.0) involving several timers. At first, I was using System.Timers in order to send data by USB to a data bus. My point is that I need to send different periodic binary messages with…
2
votes
1 answer

How to get current elapsed time of iPhone music player?

This is a seemingly simple question that I just can't seem to find a simple answer for. To rephrase the question: I want to get the current time stamp on a song playing on the native music player on an iPhone from my separate app. I've seen the…
MattLoszak
  • 585
  • 2
  • 5
  • 15
2
votes
1 answer

Multiple elapsed time counters

I am successful utilizing the below code to show 1 elapsed timer on a webpage. I'd like to be able to show several elapsed time counters on the same page, one for each TEAM. I was able to achieve this by duplicating the entire code, though this…
Swicked
  • 21
  • 1
1
vote
2 answers

Test the first time the Elapsed event is raised. Efficient or useless?

I have a timer and I want to know if its efficient or not to test if it's the first time the timer raise the elapsed event or not (I want change the Interval property after the first time the Elapsed event is raised) _timer = new…
Florian
  • 4,507
  • 10
  • 53
  • 73
1
vote
2 answers

Calculating remaining time to a given benchmark (in weeks) in Oracle

Here's what I'm up to: I have some data that represents a goal that students are supposed to reach by a given benchmark (in this case, June 15th). I'm looking at a transactional table and running some rollup queries that attempt to figure out how…
Andrew
  • 9,090
  • 8
  • 46
  • 59
1
vote
2 answers

Wait for random amount of time, then start updating elapsed time in a UILabel (iPhone)

I'm trying to implement a button that starts a timer after a random period of time (between 0-10s). While the timer is running it should update a label every 0.005s to show how much time has elapsed. The problem i'm having is 2-fold: I'm not sure…
user843337
1
vote
0 answers

PowerBI calculate elapsed time

I have a timeseries data of list of processes uploaded to PowerBI desktop. The data is composed of multiple processes and sub process and their start and finish time. Each process has multiple sub processes. Each sub process (of a parent process)…
AndyK
  • 11
  • 1
1
vote
1 answer

Covert Elapsed time to datetime

I have an excel file that contains the start date: 24/09/2021, start time: 16:13:48, The Test Length [D:H:M]: 06:17:25. The data are saved for PM in Elapsed time after the start time every 5 minutes. I would like to convert this Elapsed time to…
Sedi
  • 69
  • 2
  • 4
1
vote
1 answer

Show request duration in drf-spectacular (Swagger)

I have a Django/DRF project with drf-spectacular (Swagger) integration and wondering how can I add a request duration as shown on the image below. Is there any way to achive elapsed time section? Thanks in advance.
voilalex
  • 2,041
  • 2
  • 13
  • 18
1
vote
0 answers

SAP BO - Isolate working hours from ellapsed time

I would like your support. In an time period of 1 week (7 days) I would like to isolate the measurements that occur in a time frame between Monday - Friday and from 7:00am to 17:00pm. I want to collect the measurements only during working hours. How…
EkRo
  • 11
  • 2
1
vote
1 answer

Elapsed time in my c++ application increases from 0 to 60 too fast (like in a millisecond, or a microsecond)

In my traffic simulation project, I want to change the states(color of lights) of the traffic light objects in a period. I wrote TrafficLightGroup class to group 7 traffic lights (t-lights) into 3 groups. In this class, there is a simulate()…
Utku Demir
  • 373
  • 1
  • 6
  • 14
1
vote
1 answer

Retrieving remaining time from python timer

Looking for simple approach to obtaining remaining and elapsed time from python timer. Currently have (based on github source for threading.Timer and previous post): import threading import time class CountdownTimer(threading.Thread): def…
robohobo
  • 25
  • 4