This repository contains an AIMMS toolkit: Stopwatch Library. It measures how long a block of AIMMS code takes, with two procedures.
Timing a block of code in AIMMS means capturing a moment before it, capturing another after it, and converting the difference - every single time you want a number.
This library reduces that to pr_start before the block and fnc_elapsed after it,
and keeps up to ten stopwatches running at once, so nested or parallel measurements
do not interfere with each other.
To get the most out of this toolkit, we highly recommend reading our detailed step-by-step guide on the AIMMS How-To website:
👉 Read the Full Article: Stopwatch Library
- AIMMS: You will need AIMMS installed to run the model. Download the Free Academic Edition here.
- A project to add it to: this toolkit is a library, meant to be imported into an application of your own.
- Download the Release: Go to the Releases page and download the
.zipfile from the latest version. - Open the Project: Launch the
.aimmsfile. - Add the Library: in your own project, use File > Library Manager > Add Library from Disk.
- Measure: call
pr_startbefore the code you want to time andfnc_elapsedafter it.
This toolkit is maintained by the AIMMS User Support Team.
- Found an issue? Open an issue.
- Questions? Reach out via the AIMMS Community.
Maintained by the AIMMS User Support Team. We optimize the way you build optimization.