stopwatch (::quartus::misc)
The following table displays information for the stopwatch Tcl command:
Tcl Package and Version |
Belongs to ::quartus::misc 1.0 |
|||
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 | |||
Description |
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 |