This module provides procedures to measure the time it takes to execute. cf. https://qiita.com/implicit_none/items/86c9117990798c1e8b3b
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | private | :: | begin_s | ||||
| real(kind=real64), | private | :: | end_s | ||||
| integer(kind=c_long_long), | private | :: | frequency | ||||
| logical(kind=c_bool), | private | :: | is_succeeded | = | .false. | ||
| logical(kind=c_bool), | private | :: | is_supported | = | .false. | ||
| real(kind=real64), | private | :: | last_s | ||||
| integer(kind=c_long_long), | private | :: | time_begin_qhc | ||||
| integer(kind=c_long_long), | private | :: | time_end_qhc |
For Windows, use high-resolution system call for timing.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=c_long_long), | intent(out) | :: | PerformanceCount_count |
For Windows, use high-resolution system call for timing.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=c_long_long), | intent(out) | :: | Frequency_countPerSec |
This function takes a real number of seconds, converts it to the appropriate units, and returns a string with the unit for output.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | lap_time |
This function is for timing purposes and returns the lap time
since the last call of time_begin or time_lap.
This subroutine is for timing purpose and starts a stopwatch.