Questions tagged [elapsed]
82 questions
0
votes
3 answers
What does System.nanoTime() return in Android?
I have a bunch of activities tied together, one into the next and so on. Now during one activity I want to measure elapsed time. As I understand, I would use System.nanoTime() to find the start time, the user does some things, then use it once more…

mike
- 1,318
- 3
- 21
- 41
0
votes
2 answers
Elapsed time in Java?
I'm doing a homework assignment in my Java class. I got most of it except for this one part about elapsed time. We have to use methods. Here's the assignment and the code I have.
"You have just been hired by a company to do it’s weekly payroll. …

Garrett Outlaw
- 215
- 3
- 6
- 16
0
votes
3 answers
Elapsed days between two dates
I am reading a book about Objective-C and I am working on an exercise to add a category to the NSDate class called elapsedDays that returns the number of elapsed days between tow dates. Here is my try:
-(unsigned long) elapsedDays: (NSDate *)…

Aladin
- 53
- 1
- 5
0
votes
1 answer
Calculate elasped Unix Time in loop
I'm doing these webrequests loops and I need to keep track of time (unix time) elapsed since first request. For ex:
Dim post1 String = "http://www.xxx.com/......" & UnixTimeNow1stCall & "......"
Dim postReq1 As HttpWebRequest =…

Vandelay
- 3
- 2
-1
votes
2 answers
Windows C# Timer Elapsed Error
I am making a timer to run a specific piece of code every 24 hours, I am using a timer to do this, but I am getting the following error when I try to run my code.
Error 1 'System.Windows.Forms.Timer' does not contain a definition for 'Elapsed'…

Nezz
- 41
- 2
- 11
-2
votes
1 answer
Why does the elapsed time of a function slightly change with every run?
This is a piece of code that calculates the time elapsed to execute a for loop that sums the integers from 0 to 10000000 and prints the result.
# time elapsed:
import time
start = time.time()
sum = 0
for num in range(10000000):
sum +=…

abadawi
- 378
- 1
- 5
- 15
-2
votes
2 answers
VB Elapsed time method confusion
I have to code a program which finds the elapsed time when i enter the 2 times into 2 textboxes, one textbox will be the start time, the other textbox will be the end time, I am lost as to how I do this.
Example
Start time is 12:45
the end time is…

RobertMcGugian
- 1
- 1