Hi,
I need to time a certain function in my C/C++ code and I am experiencing some difficulties. I timed it using wallclock time so I know that it takes approximately 500-600 microseconds with
gettimeofday(&start, NULL);
// my function call
gettimeofday(&end, NULL);
answer = (end.tv_sec -... (2 Replies)
Hello
I have problem with function 'time' to test my program for file copying .
How to run the function in my source code ?
I try something like that:
system("time"); < -- but this don't working (2 Replies)
Hi All,
I am using solaris and nawk.
Is there any time function in nawk which is simliar to the shell `date` function ?
Can any experts show any examples? (4 Replies)
HI ,
I need to get the timedifference between two values... which funcation will help
eg: difference betweem 19:22 and 19:43 should give 21 mins (2 Replies)
hello everybody!
i want to post a question. So, I use the command 'time a.out' to time the duration of the program a.out. The return value of this function was:
real 0m4.116s
user 0m4.112s
sys 0m0.016s
What i want is! I try to find a way to get (NOT manually) the value of real time.... (2 Replies)
HI
I have a Red Hat Enterprise with Real Time kernel.
Are you aware if there are C functions for this kernel or some code/library for this OS for measuring time more lightweight than clock_gettime and gettimeofday? THe hardware I have is NUMA.
Reading forums I found gethrtime but it is... (1 Reply)
Hello, I have made a Linux Shell Script that downloads 6 files from the Internet and then deletes them. Now i want to use the function "/usr/bin/time" and "bc" to calculate how long the avergate run time for the shell script is. I therefore need to do it 100 times. My shell script code is below:
... (6 Replies)
I want to print the difference (in days) between ($7) and the oldest record date ($6) based on unique ID ($5) on a new field. In addition, I want to subtract oldest date from recent dates(in days) ($6) for each unique ID ($5).
Here is the data looks like
7 81 1 47 32070 2010-12-14 ... (11 Replies)
Hi guys and gals...
I am writing a piece of code that is dash compliant and came across this error.
I have put it in the OSX section as that is what I am using.
I have no idea what the 'dash' version is but was installed about 6 months ago.
MBP, OSX 10.12.6, default terminal running dash on... (4 Replies)
Discussion started by: wisecracker
4 Replies
LEARN ABOUT LINUX
etop
etop(3erl) Erlang Module Definition etop(3erl)NAME
etop - Erlang Top is a tool for presenting information about erlang processes similar to the information presented by "top" in UNIX.
DESCRIPTION
etop should be started with the provided scripts etop and getop for text based and graphical presentation respectively. This will start a
hidden erlang node which connects to the node to be measured. The measured node is given with the -node option. If the measured node has a
different cookie than the default cookie for the user who invokes the script, the cookie must be explicitly given witht the -setcookie
option.
Under Windows the batch files etop.bat and getop.bat can be used.
The following configuration parameters exist for the etop tool. When executing the etop or getop scripts, these parameters can be given as
command line options, e.g. getop -node testnode@myhost -setcookie MyCookie .
node :
The measured node.
Value: atom()
Mandatory
setcookie :
Cookie to use for the etop node - must be the same as the cookie on the measured node.
Value: atom()
lines :
Number of lines (processes) to display.
Value: integer()
Default: 10
interval :
The time interval (in seconds) between each update of the display.
Value: integer()
Default: 5
accumulate :
If true the execution time and reductions are accumulated.
Value: boolean()
Default: false
sort :
Identifies what information to sort by.
Value: runtime | reductions | memory | msg_q
Default: runtime ( reductions if tracing=off )
tracing :
etop uses the erlang trace facility, and thus no other tracing is possible on the measured node while etop is running, unless this
option is set to off . Also helpful if the etop tracing causes too high load on the measured node. With tracing off, runtime is not
measured.
Value: on | off
Default: on
All interaction with etop when running the graphical presentation should happen via the menus. For the text based presentation the func-
tions described below can be used.
See the user's guide for more information about the etop tool.
EXPORTS
config(Key,Value) -> Result
Types Result = ok | {error,Reason}
Key = lines | interval | accumulate | sort
Value = term()
This function is used to change the tool's configuration parameters during runtime. The table above indicates the allowed values for
each parameter.
dump(File) -> Result
Types Result = ok | {error,Reason}
File = string()
This function dumps the current display to a text file.
stop() -> stop
This function terminates etop .
Ericsson AB observer 0.9.9 etop(3erl)