|
|
|
|
|
|
| Author |
Message |
Walter Roberson *nix forums Guru
Joined: 19 Feb 2005
Posts: 1300
|
Posted: Mon Jul 17, 2006 4:56 pm Post subject:
Re: clock() returns 0
|
|
|
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
|
Posted: Mon Jul 17, 2006 4:16 pm Post subject:
clock() returns 0
|
|
|
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 |
|
 |
|
|
The time now is Fri Nov 21, 2008 7:58 pm | All times are GMT
|
|
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
|
|