Barry Gershenfeld wrote:
> 
> real    0m37.930s
> user    0m0.000s
> sys     0m0.000s
> 
> ...on a screamin' 533MHz Pentium, in cygwin, under Windows 98. 
> ...uphill, both ways.

% time ./3x3 "2468135 7" "12345678 " > /dev/null 
2008-01-08T11:32:17-0800
./3x3 "2468135 7" "12345678 " > /dev/null  3.17s user 0.20s system 99% cpu 
3.379 total

(I have time aliased to: date -Isec; time)

% grep name /proc/cpuinfo 
model name      :               Intel(R) Pentium(R) 4 CPU 3.40GHz
model name      :               Intel(R) Pentium(R) 4 CPU 3.40GHz
% free -m
             total       used       free     shared    buffers     cached
Mem:          2012       1689        323          0          0       1184
-/+ buffers/cache:        505       1507
Swap:         1906          0       1906

% uname -a; cat /etc/debian_version 
Linux chao 2.6.18-5-amd64 #1 SMP Sat Dec 22 20:43:59 UTC 2007 x86_64 GNU/Linux
4.0

No comments on code, other than it works and few compiler warnings when
I typed ``make 3x3''.

-john

3x3.c: In function 'new':
3x3.c:208: warning: incompatible implicit declaration of built-in function 
'strncpy'
3x3.c: In function 'main':
3x3.c:418: warning: incompatible implicit declaration of built-in function 
'strlen'
3x3.c:421: warning: incompatible implicit declaration of built-in function 
'strncpy'

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to