• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

STOPWATCH LISP: Time Every AutoCAD Command as It Runs

August 3, 2026

STOPWATCH reports how long every AutoCAD command takes to run. Toggle it on and each command prints its elapsed time when it finishes.

What StopWatch does

This is the practical way to find out what is actually making a drawing feel slow, rather than guessing. Run the suspect commands with the timer on and read the numbers.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type STOPWATCH to turn timing on.
  3. Work normally. Each command prints its elapsed time as it finishes.
  4. Type STOPWATCH again to turn it off.

How it works

A command reactor fires two callbacks: one the instant a command starts, one the instant it ends. The start callback stamps the clock, the end callback stamps it again and prints the difference.

Two clocks are read, because they answer different questions.

MILLISECS is the wall clock — what you actually waited. CPUTICKS is processor time, which distinguishes genuine computation from time spent waiting on a file, a network share or on you.

A command with a long wall time but few ticks is waiting on something external; one with both high is genuinely working hard. That single distinction is usually the whole diagnosis — it tells you whether to optimise a routine or go and look at the network.

Notes and limits

  • It reports every command, including transparent ones, which can be noisy. Turn it off when you are done measuring.
  • Compare the two figures, not just the first. Wall time alone will send you optimising the wrong thing.
  • Reactors live for the session. The toggle is not remembered between restarts.
  • It changes nothing in the drawing.

Download and details

NameStopWatch — report how long every AutoCAD command takes to run
DownloadStopWatch.lsp — 6.1 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandSTOPWATCH
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size6.1 KB, 136 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoNot needed — this routine only reads the drawing and changes nothing.
CompatibilityAutoCAD (any release with AutoLISP), BricsCAD, ZWCAD, GstarCAD, ProgeCAD and other IntelliCAD-based platforms. AutoCAD LT needs a LISP enabler. No .NET, no ObjectARX, no installer.
AuthorYZ, August 2026
LicenceFree to use, supplied “as is” with no warranty.

References

  • USAGELOG LISP — which commands get used, rather than how long they take
  • STRAYHUNT LISP — one common cause of a drawing behaving badly
  • More free AutoLISP routines on this site
  • Wisey’s Steel Shapes — free structural steel section drawing program

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in