07-19-2011
Hi
after few research I didn't find a better function than clock_getime or a specific function for RedHat distro BUT I can tell you that in the 2.6 kernel there are new ID available for clock_getime.
If you use version 2.6.28 you can use a new clock type, CLOCK_MONOTONIC_RAW
If you use version 2.6.32 you can use a new clock type, CLOCK_REALTIME_COARSE and CLOCK_MONOTIC_COARSE.
Someone did some tests with it and they seem 5 times faster than the code used by CLOCK_MONOTONIC and CLOCK_REALTIME.
Best Regards
MNSTN
7 More Discussions You Might Find Interesting
1. Programming
Can anyone please help me in measuring the system call timings!
How do I do it if I have to measure the timing of an operation, say getpid system call.
What different functions can I use for that and what would be the difference using each of them?
Thanx! (3 Replies)
Discussion started by: chacha
3 Replies
2. Programming
I need a c function which return the time in:
hour min sec and mil sec
I am writing on unix os. (3 Replies)
Discussion started by: kamil
3 Replies
3. Shell Programming and Scripting
Hi,
I would like to display the exact time taken to complete running a particular tool or function or program to user
I don't know the exact time functions in unix, please help me
thanks in advance
Example:
$test.ksh
output should be
The... (10 Replies)
Discussion started by: hsekol
10 Replies
4. Programming
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)
Discussion started by: scotty_123
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: Raynon
4 Replies
6. UNIX for Dummies Questions & Answers
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)
Discussion started by: nicos
2 Replies
7. Ubuntu
I wrote this kernel module to test the correctness of ndelay() function.
Kernel mdoule:
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/time.h>
#include <linux/delay.h>
static int __init initialize(void)
{
ktime_t start, end;
s64... (1 Reply)
Discussion started by: BHASKAR JUPUDI
1 Replies
LEARN ABOUT CENTOS
rhsm-debug
rhsm-debug(8) Certificate Information Tool rhsm-debug(8)
NAME
rhsm-debug - Compiles information about system's entitlements, products, and identity used by Red Hat Subscription Manager.
SYNOPSIS
rhsm-debug module [options]
DESCRIPTION
rhsm-debug compiles information about system's entitlements, products, and identity used by Red Hat Subscription Manager.
COMMANDS AND OPTIONS
rhsm-debug has specific options available for each module, depending on what operation is being performed. The currently supported modules
are:
1. system
COMMON OPTIONS
-h, --help
Prints the specific help information for the given command.
--proxy=PROXY
Uses an HTTP proxy. The PROXY name has the format hostname:port.
--proxyuser=PROXYUSERNAME
Gives the username to use to authenticate to the HTTP proxy.
--proxypassword=PROXYPASSWORD
Gives the password to use to authenticate to the HTTP proxy.
SYSTEM OPTIONS
The system command pulls in debug information off of the current system
--destination=DESTINATION
The directory to place the resulting debug data. The default is /tmp.
--no-archive
Generates an uncompressed directory intead of a gzipped file.
--sos Excludes data files that are also collected by the sosreport tool.
BUGS
This tool is part of Red Hat Subscription Manager. To file bugs against this command-line tool, go to <https://bugzilla.redhat.com>, and
select Red Hat > Red Hat Enterprise Linux > subscription-manager.
AUTHORS
William Poteat<wpoteat@redhat.com>. The rhsm-debug tool was written by William Poteat.
COPYRIGHT
Copyright (c) 2012 Red Hat, Inc. This is licensed under the GNU General Public License, version 2 (GPLv2). A copy of this license is avail-
able at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
version 1.3 May 23, 2013 rhsm-debug(8)