Search Results

Search: Posts Made By: johnbach
Forum: Programming 07-29-2010
2,518
Posted By johnbach
$cat ts.C #include<iostream> #include<time.h>...
$cat ts.C
#include<iostream>
#include<time.h>
using namespace std;
int main()
{
clock_t start = clock();
int i=9*8;
while(i--)
{
int j=9999999;
while(j--);
}
clock_t end = clock();...
Forum: Programming 07-27-2010
2,518
Posted By johnbach
problem with clock()
#include<iostream>
#include<time.h>
using namespace std;
int main()
{
system("date");
clock_t start = clock();
int i=9*8;
while(i--)
{
int...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy