Sponsored Content
Top Forums Programming systemtap returntimeofday_s and some questions Post 302510624 by ctsgnb on Monday 4th of April 2011 01:01:52 PM
Old 04-04-2011
gettimeofday

See the syntax in the link provided above : a pointer to a timeval structure should be specified as first argument to store the result

Last edited by ctsgnb; 04-04-2011 at 02:10 PM..
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

questions

Dear Guys , I have some Questions , i need to have answeres for . 1. now if i took a back up for /etc/passwd and /etc/shadow , like simple copy .. and Install a new system , and paste those two files to the new system ... are the passwords and user info. going to work ?? is it posibble ? ... (1 Reply)
Discussion started by: tamemi
1 Replies

2. UNIX for Dummies Questions & Answers

Just a few questions.

Hi everyone im new to this forums, i just wanted to get started by asking a few question(Im a Unix newbie) 1. How do i sort a file called "dirr" in a ascending order on the 3rd column 2. what does alias on=who do Thanks in advance!!! (1 Reply)
Discussion started by: Da Paper
1 Replies

3. UNIX for Dummies Questions & Answers

3 questions in 1

Hi folks, 1. How can i know which version/type of unix i am running? any special commands?. I connect to a remote machine through SSH but have no clue what kind of unix that is (don't laugh :-)) 2. Why does the machine i connect to have $ sign as its shell prompt sign while solaris has #... (2 Replies)
Discussion started by: alikun
2 Replies

4. UNIX for Dummies Questions & Answers

A few questions...

I'm new to this UNIX world ! :D I login to a remote server (UNIX ) from an XP machine.. Let's say I need to download a window manager, I've decided upon wmaker .. But how do I go about it? How do I connect to the internet from my remote Unix X-Term terminal? And how do i install it? ... (2 Replies)
Discussion started by: halluc1nati0n
2 Replies

5. Shell Programming and Scripting

More ps questions.

Hey all, Thanks for all the help you have given me. Two more things I am trying to figure out. I need to issue a command..example ps -ef | grep <process> This would return about 10-15 running processes. I need to verify that there are x amount of processes running. What is... (7 Replies)
Discussion started by: jeffs42885
7 Replies

6. Homework & Coursework Questions

Print questions from a questions folder in a sequential order

1.) I am to write scripts that will be phasetest folder in the home directory. 2.) The folder should have a set-up,phase and display files I have written a small script which i used to check for the existing users and their password. What I need help with: I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies

7. Programming

Systemtap

Hi, I am a newbie to the systemtap. I was wondering is there a way I can write the data to file instead of printing on the screen. This way, I can process the systemtap output periodically using other programs. Thanks in advance!! Fidelity (2 Replies)
Discussion started by: fidelity
2 Replies
GETTIMEOFDAY(P) 					     POSIX Programmer's Manual						   GETTIMEOFDAY(P)

NAME
gettimeofday - get the date and time SYNOPSIS
#include <sys/time.h> int gettimeofday(struct timeval *restrict tp, void *restrict tzp); DESCRIPTION
The gettimeofday() function shall obtain the current time, expressed as seconds and microseconds since the Epoch, and store it in the timeval structure pointed to by tp. The resolution of the system clock is unspecified. If tzp is not a null pointer, the behavior is unspecified. RETURN VALUE
The gettimeofday() function shall return 0 and no value shall be reserved to indicate an error. ERRORS
No errors are defined. The following sections are informative. EXAMPLES
None. APPLICATION USAGE
None. RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
ctime() , ftime() , the Base Definitions volume of IEEE Std 1003.1-2001, <sys/time.h> COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 GETTIMEOFDAY(P)
All times are GMT -4. The time now is 06:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy