Simple timer. Holds start-time, stop-time, and time-difference.
More...
|
procedure | start (t) |
| start time
|
|
procedure | stop (t) |
| stop time
|
|
procedure | show (t, unit) |
| Show time.
|
|
generic | operator (t1, t2) |
| add times
|
|
generic | operator (t1, val) |
| divide time in intervals
|
|
generic | assignment (t, val) |
| assign int to time
|
|
generic | assignment (t, t1) |
| Assign a time.
|
|
|
integer, dimension(7) | start_date |
| Start date.
|
|
integer, dimension(7) | stop_date |
| Stop date.
|
|
integer, dimension(7) | date_elapsed |
| Date-difference between start and stop.
|
|
real(dp), public | elapsed |
| Elapsed time (in seconds)
|
|
Simple timer. Holds start-time, stop-time, and time-difference.
◆ assignment() [1/2]
generic assignment |
( |
class(timer), intent(out) | t, |
|
|
type(timer), intent(in) | t1 ) |
Assign a time.
- Parameters
-
[out] | t | New time |
[in] | t1 | Original time |
◆ assignment() [2/2]
generic assignment |
( |
class(timer), intent(out) | t, |
|
|
integer, intent(in) | val ) |
◆ operator() [1/2]
generic operator |
( |
class(timer), intent(in) | t1, |
|
|
class(timer), intent(in) | t2 ) |
add times
- Parameters
-
[in] | t1 | first time interval |
[in] | t2 | second time interval |
- Returns
- Resulting time
◆ operator() [2/2]
generic operator |
( |
class(timer), intent(in) | t1, |
|
|
integer, intent(in) | val ) |
divide time in intervals
- Parameters
-
[in] | t1 | Time |
[in] | val | integer |
- Returns
- Resulting time
◆ show()
procedure show |
( |
class(timer), intent(in) | t, |
|
|
integer, optional | unit ) |
Show time.
- Parameters
-
[in] | t | Timer |
| unit | unit to output |
◆ start()
procedure start |
( |
class(timer), intent(out) | t | ) |
|
◆ stop()
procedure stop |
( |
class(timer), intent(inout) | t | ) |
|
The documentation for this type was generated from the following file:
- /home/fiol/Trabajos/fortran/numfor/src/utils/basic.f90