Questions tagged [cpu-time]

103 questions
0
votes
3 answers

CPU Process time using GetProcessTimes and FileTimeToSystemTime do not work in 64 bit win

I am trying to measure CPU time. It works great on Win 32, but on 64 bit, it says: error LNK2019: unresolved external symbol __imp_GetProcessTimes referenced in function "unsigned int __cdecl getWINTime(void)" (?getWIN32Time@@YAIXZ) It has similar…
grobartn
  • 3,510
  • 11
  • 40
  • 52
0
votes
2 answers

Why the CPU time is different in other threads

I ran the top -H -p for a process which gave me the few threads with LWPs. But when I sort the results with smallest PID first, I noticed the time in first thread is constant but the other threads time is changing. Why TIME+ is different? PID USER …
mnvbrtn
  • 558
  • 1
  • 8
  • 27
0
votes
1 answer

CPU time of a process in Node.js

Is there a way to know the CPU time of a Node.js process at any time? I need it to evaluate the consumption in terms of CPU time of some Node.js processes I spawn. Thanks.
Masiar
  • 20,450
  • 31
  • 97
  • 140
0
votes
1 answer

What is "CPU time" (using Android's ps -x)?

So I'm trying to write a Java function that gathers CPU time for processes, and compares them to prior readings to determine the CPU time a process has demanded since the last sample was taken. I found out how to get the CPU time of processes from…
Kmanc
  • 349
  • 1
  • 5
  • 20
0
votes
1 answer

How can console prints logged into a file with timestamp

With xxx > log, we can get all console prints into the log file. While how can I get a timestamp for each prints? Thanks
thundium
  • 995
  • 4
  • 12
  • 30
0
votes
0 answers

Automatically identify (and kill) processes with long processing time

I'm running a script that daily downloads, builds and checks a program I'm contributing to. The "check" part implies performing a suit of test runs and comparing results with the reference. As long as the program finishes (with or without errors),…
Jellby
  • 2,360
  • 3
  • 27
  • 56
0
votes
1 answer

How to figure out CPU and IO time in Unix environment

I have a simple Multithreaded program that is calling an External API and get the response back from that API. I am using RestTemplate. Problem Statement:- I am trying to find out What is the estimated CPU and IO time for these calls? I am working…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
-1
votes
2 answers

MPI with C slower if more processes are used

I am learning MPI with C and I wrote a code based on the one presented in this link: http://condor.cc.ku.edu/~grobe/docs/intro-MPI-C.shtml. In this code a vector containing 1e8 values are summed. However, I am observing that when using more…
Felipe_SC
  • 1
  • 3
-1
votes
1 answer

Visual Studio External Code High Self CPU Times

I am working on a very large project in VS 2017. I am new to VS and it's debugging tools and am having a hard time understanding how to interpret the below call tree. From what I understand the self CPU time is the time taken by the calling method…
-1
votes
1 answer

Matlab cputime with kmeans return 0

I am measuring the cputime taken by kmeans algorithm for each iteration using cputime feature. However, some iterations return cputime = 0. Here's my implementation: load fisheriris; [~,C] = kmeans(meas, 3, 'options',statset('MaxIter',…
foo
  • 157
  • 1
  • 1
  • 11
-2
votes
3 answers

For loops are for beginners - how does it work better in R?

I have a data set with about 75,000 observations, which I would like to prepare a little bit in the first step. For example I want to set a variable under a certain condition. My classical approach now would be to iterate over the complete data set…
edstrinova
  • 101
  • 1
  • 7
-4
votes
1 answer

Variable declaration in java

How I can use the CPU time as variable in java where I need to define a variable with dynamic value increase with time pass example int cpuTime; first: cpuTime = 0 because but after 20 second cpuTime = 20 and after 60 second cpuTime= 60 and so on?…
-5
votes
1 answer

want to fetch CPU time, got

#ifdef WIN32 #else #include #include #include #include #include #include #include #include #include #endif int main() { long time_ms; #ifdef…
Ved Yadav
  • 7
  • 2
1 2 3 4 5 6
7