Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | icontxt | ||||
real(kind=psb_dpk_), | private | :: | partial | ||||
real(kind=psb_dpk_), | private | :: | split | ||||
real(kind=psb_dpk_), | private | :: | total |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stopwatch), | intent(in) | :: | sw |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stopwatch), | intent(in) | :: | sw |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stopwatch), | intent(inout) | :: | sw |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stopwatch), | intent(inout) | :: | sw |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stopwatch), | intent(inout) | :: | sw |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stopwatch), | intent(inout) | :: | sw |
TYPE stopwatch
PRIVATE
INTEGER :: icontxt
REAL(psb_dpk_) :: total
REAL(psb_dpk_) :: split
REAL(psb_dpk_) :: partial
CONTAINS
PROCEDURE :: partial_, total_ ! Getters
PROCEDURE, PRIVATE :: synchro_stopwatch, tic_stopwatch, toc_stopwatch !Setters
GENERIC, PUBLIC :: synchro => synchro_stopwatch
GENERIC, PUBLIC :: tic => tic_stopwatch
GENERIC, PUBLIC :: toc => toc_stopwatch
PROCEDURE, PRIVATE :: reset_stopwatch
GENERIC, PUBLIC:: reset => reset_stopwatch
END TYPE stopwatch