From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Epiphanov Sergei To: =?windows-1251?b?0ODx8fvr6uAgU2lzeXBodXM=?= Date: Fri, 26 Nov 2004 11:46:45 +0300 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_11upB17mDJNhSRK" Message-Id: <200411261146.45372.serpiph@nikiet.ru> Subject: [sisyphus] =?windows-1251?b?3+Tw4CAyLjQg6CAyLjYgLSDiIPe47CDw4Ofr?= =?windows-1251?b?6Pfo/z8=?= X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2004 08:41:07 -0000 Archived-At: List-Archive: --Boundary-00=_11upB17mDJNhSRK Content-Type: text/plain; charset="windows-1251" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =C5=F1=F2=FC =EF=F0=EE=E3=F0=E0=EC=EC=EA=E0 (=E2 =E0=F2=F2=E0=F7=E5). =C5= =F1=EB=E8 =E5=B8 =F1=EE=E1=F0=E0=F2=FC =E8 =E7=E0=EF=F3=F1=F2=E8=F2=FC, =EF= =EE=EB=F3=F7=E0=FE=F2=F1=FF=20 =F1=EB=E5=E4=F3=FE=F9=E8=E5 =F0=E5=E7=F3=EB=FC=F2=E0=F2=FB: 1. =FF=E4=F0=EE 2.4.27-std-up-alt1 =E8 2.4.27-std-smp-alt1 Execution time=3D5.99862 seconds 2. =FF=E4=F0=EE 2.6.9-std26-smp-alt11 Execution time=3D6.09922 seconds =C2 =EE=E1=EE=E8=F5 =F1=EB=F3=F7=E0=FF=F5 =E7=E0=EF=F3=F1=EA=E0=EB =E8 =EF= =EE=E4 =EE=E1=FB=F7=ED=FB=EC =EF=EE=EB=FC=E7=EE=E2=E0=F2=E5=EB=E5=EC, =E8= =EF=EE=E4 root =F1 nice=3D-20=20 =E2 runlevel=3D3 =E8 runlevel=3D1. =D0=E5=E7=F3=EB=FC=F2=E0=F2 =EF=F0=E0=EA= =F2=E8=F7=E5=F1=EA=E8 =ED=E5 =EC=E5=ED=FF=E5=F2=F1=FF. =D2=EE =E6=E5 =F1=E0= =EC=EE=E5=20 =EE=E1=ED=E0=F0=F3=E6=E8=EB =E8 =E2 =F1=EB=EE=E6=ED=EE=E9 =EF=F0=EE=E3=F0= =E0=EC=EC=E5: =ED=E0 =FF=E4=F0=E5 2.6 =F2=E0=E9=EC=E5=F0 =F0=E0=F1=F2=FF=E3= =E8=E2=E0=E5=F2 =E2=F0=E5=EC=FF =E2=ED=E5=20 =E7=E0=E2=E8=F1=E8=EC=EE=F1=F2=E8 =EE=F2 =F8=E0=E3=E0 =F2=E0=E9=EC=E5=F0=E0= (=EC=EE=E6=ED=EE =EF=EE=F1=F2=E0=E2=E8=F2=FC =E8 30=EC=F1, =E8 300=EC=F1= ) =E8 =E2=FB=E2=EE=E4=E0 =ED=E0=20 =FD=EA=F0=E0=ED. =C2 =F7=B8=EC =EC=EE=E6=E5=F2 =E1=FB=F2=FC =EF=F0=EE=E1=EB= =E5=EC=E0 =E8 =EA=E0=EA =E5=B8 =EE=E1=EE=E9=F2=E8 =ED=E0 2.6 (=EC=ED=E5 =FD= =F2=EE =FF=E4=F0=EE=20 =E1=EE=FC=F8=E5 =ED=F0=E0=E2=E8=F2=F1=FF)? --=20 =D1 =F3=E2=E0=E6=E5=ED=E8=E5=EC, =C5=EF=E8=F4=E0=ED=EE=E2 =D1=E5=F0=E3=E5= =E9 --Boundary-00=_11upB17mDJNhSRK Content-Type: text/x-c++src; charset="windows-1251"; name="testschm.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="testschm.cpp" /*************************************************************************** * Copyright (C) 2004 by Epiphanov Sergei * * serpiph@nikiet.ru * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include void handler(int i){ return; } using namespace std; int main(int argc, char *argv[]) { //cout << "Hello, world!" << endl; struct timeval begin, end; struct timezone tz __attribute__ ((__unused__)); struct sigaction sa; memset( &sa, 0, sizeof( sa) ); sa.sa_handler = handler; sigaction( SIGALRM, &sa, NULL ); struct itimerval tv; tv.it_interval.tv_sec = 0; tv.it_interval.tv_usec = 60000; tv.it_value.tv_sec = 0; tv.it_value.tv_usec = 60000; setitimer( ITIMER_REAL, &tv, NULL ); gettimeofday( &begin, &tz); for( int i=0; i<100; i++){ pause(); cout << "Number=" << i << "\n"; } gettimeofday( &end, &tz); cout << "Execution time=" << (end.tv_sec-begin.tv_sec)+ ((float)end.tv_usec-(float)begin.tv_usec)/1e6<< " seconds\n"; tv.it_interval.tv_usec = 0; tv.it_value.tv_usec = 0; setitimer( ITIMER_REAL, &tv, NULL ); sa.sa_handler = SIG_DFL; sigaction( SIGALRM, &sa, NULL ); return EXIT_SUCCESS; } --Boundary-00=_11upB17mDJNhSRK--