niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » SGI/IRIX » apps
clock() returns 0
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Walter Roberson
*nix forums Guru


Joined: 19 Feb 2005
Posts: 1300

PostPosted: Mon Jul 17, 2006 4:56 pm    Post subject: Re: clock() returns 0 Reply with quote

In article <1153152979.628049.46120@h48g2000cwc.googlegroups.com>,
<gramos2000@gmail.com> wrote:

Quote:
In other environment, clock returns the # of seconds that elapsed since
1/1/70 (I think) but this does not seem to work under IRIX 6.5.

No, it is time() that returns that. clock() is a counter of elapsed
CPU time.
Back to top
gramos2000@gmail.com
*nix forums beginner


Joined: 28 Jun 2006
Posts: 7

PostPosted: Mon Jul 17, 2006 4:16 pm    Post subject: clock() returns 0 Reply with quote

Hi,
Cannot find this anywhere but I'm confused why clock() returns 0.
OS is IRIX 6.5

Here's a code example:


#include <stdio.h>
#include <time.h>

int main()
{
clock_t start;
start = clock();
printf("start ==%d\n", start);
return 0;
}

In other environment, clock returns the # of seconds that elapsed since
1/1/70 (I think) but this does not seem to work under IRIX 6.5.

As always, appreciate any input.
Thanks
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 7:58 pm | All times are GMT
navigation Forum index » *nix » SGI/IRIX » apps
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts ConfigParser: what read('non-existent-filename') returns ... Danil Dotsenko python 4 Thu Jul 20, 2006 5:50 pm
No new posts Clock TheOrangeRemix Perl 3 Thu Jul 20, 2006 5:42 pm
No new posts CGI.pm and lost carriage returns Joseph Czapski Perl 21 Thu Jul 20, 2006 3:52 pm
No new posts "who am i" returns always "localhost" ¦a²y¤H AIX 5 Tue Jul 18, 2006 12:36 pm
No new posts urllib (in thread) never returns Kingsley python 1 Mon Jul 17, 2006 12:53 am

Electrical Shops | Free Myspace Layouts | Dutch Bodybuilding Forums | Pisos Denia | Remortgages
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1768s ][ Queries: 20 (0.1048s) ][ GZIP on - Debug on ]