Questions tagged [wall-time]
15 questions
7
votes
1 answer
Retrieve wall-time in Python using the standard library?
How can I retrieve wall-time in Python using the standard library?
This question, and this question would suggest that something like clock_gettime(CLOCK_MONOTONIC_RAW) or /proc/uptime are most appropriate on Linux. On Windows, time.clock() has the…

Matt Joiner
- 112,946
- 110
- 377
- 526
5
votes
3 answers
How to capture wall-clock time and CPU time in a Python variable using bash builtin 'time'?
I am working on a Python script that is going to be run in the command line. The idea is to get a command from the user, run it and then provide the wall-clock time and the CPU time of the command provided by the user. See code below.
#!/usr/bin/env…

Tesla001
- 493
- 1
- 5
- 7
4
votes
2 answers
How to compute wall time from UTC time + TimeZone ID?
I have been googling around this issue, but could not find clear and definitive documentation.
Assuming I have a UTC time and a TimeZone ID, how do I calculate wall time (= UTC time + Timezone offset + daylight savings) in Java knowing that daylight…

Jérôme Verstrynge
- 57,710
- 92
- 283
- 453
3
votes
2 answers
Can time.clock() be heavily affected by the state of the system?
This is a rather general question:
I am having issues that the same operation measured by time.clock() takes longer now than it used to.
While I had very some very similar measurements
1954 s
1948 s
1948 s
One somewhat different measurement
1999…

Radio Controlled
- 825
- 8
- 23
3
votes
1 answer
Function consuming wall time for specific amount of time
I have a function which has a factor that needs to be adjusted according to the load on the machine to consume exactly the wall time passed to the function. The factor can vary according to the load of the machine.
void execute_for_wallTime(int…

Zeeshan Hayat
- 401
- 6
- 13
2
votes
1 answer
Suspend, save to disk, restart long jobs on a supercomputer with PBS
I need to be able to suspend a "running script", have the OS save its state to disk and later resume it by reading that state and continuing exactly from where it has left. The system is a 12core compute node with a shared memory of 48GB, running…

bliako
- 977
- 1
- 5
- 16
1
vote
2 answers
Problem about cpu time and wall time in jupyternotebook
As a physics student, I have a questions I would like to ask you about program runtime.
I'm doing a small project about algorithm optimization, my toy code is written on jupyternotebook, but when I use %%time and %%timeit in cell to test cpu time…

clearlove
- 11
- 3
1
vote
0 answers
Using multiprocessing [joblib used] in python, what does it mean if Wall Time >> CPU Time? (240 seconds vs. 0.22 seconds)
I'm running a function in parallel with python multiprocessing module. This function takes images as input, and outputs some measurements. The problem is that, I compared the results of time.time() vs time.clock(), it seems the wall-time is WAY…

Ruby
- 284
- 1
- 5
- 18
0
votes
1 answer
Get wall time from dataflow for a particular stage using python
I am using projects.jobs.getMetrics to get all the job metric data from dataflow job. But wall time for a particular stage is not available in the response.
How to get wall time for a stage from a dataflow job?

Babbi
- 65
- 1
- 2
- 11
0
votes
2 answers
What are the reasons for elapsed time to greatly exceed user+kernel time?
I see a lot of threads asking about situations with elapsed time (wall time) being less than user+kernel time, and I understand how multi-threading can cause this situation. However, when timing an execution of some MPI code via:
$ time mpirun -n 4…

agrippa
- 379
- 5
- 19
0
votes
1 answer
Linux walltime runs approx 5x too slow
I'm facing a very strange behaviour on a mainboard with an Intel i7-9700 processor. The hardware clock (RTC) runs correctly, but the system time / walltime runs approx. 5x too slow:
$ sudo hwclock; sleep 10; sudo hwclock
2020-11-20…

Philipp Burch
- 869
- 1
- 7
- 16
0
votes
1 answer
Python Tkinter account for lost time
I've read similar questions that have been answered:
Getting realtime output from ffmpeg to be used in progress bar (PyQt4, stdout)
Progressbar to show amount of music played
How to measure elapsed time in Python?
Here's my window:
Problem is…

WinEunuuchs2Unix
- 1,801
- 1
- 17
- 34
0
votes
0 answers
Wall time profiling for multi-threaded application
I have two applications: one is multithreaded and one is completely sequential. Both applications perform the same task. I am trying to calculate the speedup of the multithreaded application. Somehow, I am getting more wall time for multithreaded…

Zeeshan Hayat
- 401
- 6
- 13
0
votes
1 answer
CPUTIME and WALLTIME C++ code on Linux based cluster
I have a C++ code that i'm running a linux based cluster. I want to measure the CPU time and wall time. Here is how the bash file for submitting the job looks like:
#!/bin/bash
#$ -V
#$ -cwd
#$ -j y
#$ -orte_onenode 2
#$ -o out
#$ -N…

user147813
- 67
- 2
- 8
0
votes
1 answer
Serial Code Experience Big Difference In Running Time On A GPFS FS
I need to measure the wall time of a serial code running on our cluster. In an exclusive mode, i.e., no other user is using my node, the wall time of the code vary quite a lot, ranging from 2:30m to 3:20m. The code does the same thing in every run.…

user2196452
- 361
- 2
- 16