Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 10/04/2021

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents stopwatch (::quartus::misc)

The following table displays information for the stopwatch Tcl command:

Tcl Package and Version

Belongs to ::quartus::misc

Syntax stopwatch [-h | -help] [-long_help] [-lap_time] [-number_format] [-reset] [-start]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-lap_time Option to get the lap time
-number_format Option to show the lap time in seconds without appending the "s", i.e. seconds, character
-reset Option to reset the stopwatch
-start Option to start the stopwatch

Provides a stopwatch interface.

Example Usage
	# Begin the stopwatch
stopwatch -start
exec sleep 1
	# Get the lap time
puts [stopwatch -lap_time]
exec sleep 1
	# Get the lap time
puts [stopwatch -lap_time]
	# Reset the stopwatch
stopwatch -reset
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful