Class for timing sections of code, See the Stopwatch_Class module documentation for usage.
Start the Stopwatch
Start the Stopwatch
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
|||
character(len=*), | optional | :: | title | Name to label the start of the stopwatch |
||
integer(kind=i32), | optional | :: | iunit | File ID to write to |
Stop the Stopwatch
Stop the Stopwatch
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
|||
character(len=*), | optional | :: | title | Name to label the stopped stopwatch |
||
integer(kind=i32), | optional | :: | iunit | File ID to write to |
Reset the Stopwatch
Reset the Stopwatch
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Restart the Stopwatch
Restart the Stopwatch
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Get the current or stopped time
Get the time
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Time in format HH:MM:SS.MSEC
Lap the Stopwatch
Get the lap time
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Lap time in format HH:MM:SS.MSEC
Get the lap time in seconds
Get the lap time in seconds
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Laptime in seconds
Get the current elapsed time
Get the elapsed time
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Elapsed time in format HH:MM:SS.MSEC
Get the elapsed time in seconds
Get the elapsed time in seconds
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Elapsed time in seconds
Print the date
Get the date
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Date in format DD/MM/YYYY
Print the date and time
Get the date and time
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stopwatch) | :: | this | Stopwatch Class |
Date and time in format DD/MM/YYYY HH:MM:SS.MSEC