home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / lisp / 3321 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.0 KB

  1. Xref: sparky comp.lang.lisp:3321 comp.lang.lisp.mcl:2071
  2. Newsgroups: comp.lang.lisp,comp.lang.lisp.mcl
  3. Path: sparky!uunet!gatech!destroyer!fmsrl7!lynx.unm.edu!nmsu.edu!opus!ted
  4. From: ted@nmsu.edu (Ted Dunning)
  5. Subject: Re: Measuring elapsed CPU time
  6. In-Reply-To: emcoop@bnr.ca's message of Thu, 21 Jan 1993 14:18:40 GMT
  7. Message-ID: <TED.93Jan21130124@zeste.nmsu.edu>
  8. Sender: usenet@nmsu.edu
  9. Organization: Computing Research Lab
  10. References: <1jlr7cINNep1@mensa.usc.edu> <EMCOOP.93Jan21091840@bcars148.bnr.ca>
  11. Date: Thu, 21 Jan 1993 20:01:24 GMT
  12. Lines: 18
  13.  
  14.  
  15. In article <EMCOOP.93Jan21091840@bcars148.bnr.ca> emcoop@bnr.ca (hume
  16. smith) writes:
  17.  
  18.    this sort of thing needs a macro.
  19.  
  20. or a thunk.
  21.  
  22.    in your construct, the form has
  23.    been evaled by the time the function starts, and all your timer
  24.    ends up timing is how long it takes the evaluator to find the value
  25.    of the symbol "form".
  26.  
  27. absolutely true.
  28.  
  29.  
  30. you can also wrap up the expression inside a lambda expression and
  31. apply that inside the timer function if you prefer the scheme style.
  32.