| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=rk), | public | :: | cpu_time | ||||
| real(kind=rk), | public | :: | elapsed_dtime | ||||
| real(kind=rk), | public | :: | elapsed_time | ||||
| integer, | private | :: | clock_accum_paused | = | 0 | ||
| integer, | private | :: | clock_elapsed | ||||
| integer, | private | :: | clock_end | ||||
| integer, | private | :: | clock_pause | ||||
| integer, | private | :: | clock_rate | ||||
| integer, | private | :: | clock_start | ||||
| real(kind=rk), | private | :: | cpu_elapsed | ||||
| real(kind=rk), | private | :: | cpu_end | ||||
| real(kind=rk), | private | :: | cpu_start | ||||
| logical, | private | :: | is_paused | = | .false. | ||
| logical, | private | :: | is_started | = | .false. | ||
| integer, | private | :: | values_elapsed(8) | ||||
| integer, | private | :: | values_end(8) | ||||
| integer, | private | :: | values_start(8) |
Starts the timer by recording the current CPU time value. This value is used to calculate the CPU time later.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this |
Stops the timer and calculates the CPU time. Optionally, it can print a message along with the CPU time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | nloops | ||
| character(len=*), | intent(in), | optional | :: | message | ||
| logical, | intent(in), | optional | :: | |||
| character(len=*), | intent(in), | optional | :: | color | ||
| character(len=*), | intent(in), | optional | :: | rfmt |
Writes the CPU time to a file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(in) | :: | this | |||
| character(len=*), | intent(in) | :: | file_name |
Starts the timer by recording the current processor clock value. This value is used to calculate the elapsed time later.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this |
Stops the timer and calculates the elapsed time. Optionally, it can print a message along with the elapsed time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | nloops | ||
| character(len=*), | intent(in), | optional | :: | message | ||
| logical, | intent(in), | optional | :: | |||
| character(len=*), | intent(in), | optional | :: | color | ||
| character(len=*), | intent(in), | optional | :: | rfmt |
Writes the elapsed time to a file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(in) | :: | this | |||
| character(len=*), | intent(in) | :: | file_name |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this |
Starts the timer by recording the current processor clock value. This value is used to calculate the elapsed time later.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this |
Stops the timer and calculates the elapsed time. Optionally, it can print a message along with the elapsed time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | nloops | ||
| character(len=*), | intent(in), | optional | :: | message | ||
| logical, | intent(in), | optional | :: | |||
| character(len=*), | intent(in), | optional | :: | color | ||
| character(len=*), | intent(in), | optional | :: | rfmt |
Writes the elapsed time to a file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(in) | :: | this | |||
| character(len=*), | intent(in) | :: | file_name |