starts the timer. If OMP is enabled, it will use omp_get_wtime() if not, it will use Fortran’s system_clock
Usage: call my_timer%start()
Usage assumes a declaration of type(pic_timer_type) :: my_timer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(pic_timer_type), | intent(inout) | :: | self |
subroutine timer_start(self) !! starts the timer. If OMP is enabled, it will use omp_get_wtime() !! if not, it will use Fortran's system_clock !! !! Usage: call my_timer%start() !! !! Usage assumes a declaration of type(pic_timer_type) :: my_timer class(pic_timer_type), intent(inout) :: self self%is_running = .true. #ifdef _OPENMP self%start_time = omp_get_wtime() #else call system_clock(self%start_count, self%count_rate) #endif end subroutine timer_start