The worker.
subroutine worker
!< The worker.
real(R8P) :: x
real(R8P) :: y
integer(I4P) :: i
integer(I4P) :: j
call bar%start
x = 0._R8P
do i=1, 20
x = x + 0.05_R8P
do j=1, 10000000
y = sqrt(x) ! just spend some times
enddo
call bar%update(current=x)
enddo
endsubroutine worker