1
! @(#)mmfbench1.prg 19.1 (ES0-DMD) 02/25/03 14:35:24
2
!===========================================================================
3
! Copyright (C) 1995 European Southern Observatory (ESO)
5
! This program is free software; you can redistribute it and/or
6
! modify it under the terms of the GNU General Public License as
7
! published by the Free Software Foundation; either version 2 of
8
! the License, or (at your option) any later version.
10
! This program is distributed in the hope that it will be useful,
11
! but WITHOUT ANY WARRANTY; without even the implied warranty of
12
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
! GNU General Public License for more details.
15
! You should have received a copy of the GNU General Public
16
! License along with this program; if not, write to the Free
17
! Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
20
! Corresponding concerning ESO-MIDAS should be addressed as follows:
21
! Internet e-mail: midas@eso.org
22
! Postal address: European Southern Observatory
23
! Data Management Division
24
! Karl-Schwarzschild-Strasse 2
25
! D 85748 Garching bei Muenchen
27
!===========================================================================
29
! ++++++++++++++++++++++++++++++++++++++++++++++++++++++
31
! MIDAS procedure mmfbench1.prg
32
! P.Grosbol 1988 Oct 08
34
! use as @@ mmfbench1 frame
36
! ++++++++++++++++++++++++++++++++++++++++++++++++++++++
38
DEFINE/PAR P1 test IMAGE "Enter Image: "
40
DEFINE/LOCAL TIMEA/C/1/40 " " ALL
41
DEFINE/LOCAL TIMEB/C/1/40 " " ALL
43
WRITE/KEY TIMER/R/1/3 0.,0.,0.
46
WRITE/OUT ++++++++++++++++++++++++++++++++++++++++++
47
WRITE/OUT procedure mmfbench1 on 'MID$SYS(1:16)'
48
WRITE/OUT ++++++++++++++++++++++++++++++++++++++++++
51
! ***** Level search *****
52
! **************************
56
COMP/KEY TIMEA = M$TIME()
58
@@@ srchmmf 'P1' L 3,30
60
COMP/KEY TIMEB = M$TIME()
61
@ timediff "'TIMEA(1:40)'" "'TIMEB(1:40)'"
62
WRITE/OUT ==========================================
63
WRITE/OUT Level search time = 'TIMER(1)' seconds
64
WRITE/OUT ==========================================
66
! ***** Gradient search *****
67
! **************************
71
COMP/KEY TIMEA = M$TIME()
73
@@@ srchmmf 'P1' G 3,20,20
75
COMP/KEY TIMEB = M$TIME()
76
@ timediff "'TIMEA(1:40)'" "'TIMEB(1:40)'"
77
WRITE/OUT ==========================================
78
WRITE/OUT Gradient search time = 'TIMER(1)' seconds
79
WRITE/OUT ==========================================