Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 12, 2016 15:51
Show Gist options
  • Save zhouqiang-cl/97f2e46c8bf03935ed88e03a7164db2c to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/97f2e46c8bf03935ed88e03a7164db2c to your computer and use it in GitHub Desktop.
common lisp 的宏 TIME
语法
time form => result*
参数和值
form --- 一个 form
results --- form 返回的 values
描述
time 在当前的环境(词法和动态变量)中对 form 进行求值.
time 会把各种用时打印出来
代码
* (time (+ 1 2))
Evaluation took:
0.000 seconds of real time
0.000002 seconds of total run time (0.000001 user, 0.000001 system)
100.00% CPU
504 processor cycles
0 bytes consed
3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment