Measure time with ztimer.  
More...
Measure time with ztimer. 
- Author
 - Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com 
 
◆ ztimer_stopwatch_init()
Initialize a ztimer stop watch The stop watch is not running yet. 
- Parameters
 - 
  
    | [in] | clock | The clock to use for the stopwatch  | 
    | [out] | timer | The stop watch clock to initialize  | 
  
   
Definition at line 41 of file stopwatch.h.
 
 
◆ ztimer_stopwatch_measure()
Take a measurement from the stop watch timer. 
- Parameters
 - 
  
    | [in] | timer | The stop watch timer to take a measurement of | 
  
   
- Returns
 - Timer ticks since the stop watch was started / reset 
 
Definition at line 64 of file stopwatch.h.
 
 
◆ ztimer_stopwatch_reset()
Reset the stop watch start time. 
The Stop Watch will start counting from 0 again.
- Parameters
 - 
  
    | [in] | timer | The stop watch timer to reset | 
  
   
- Returns
 - Timer ticks since the last reset / start of the watch 
 
Definition at line 77 of file stopwatch.h.
 
 
◆ ztimer_stopwatch_start()
Start the stop watch timer. 
- Parameters
 - 
  
    | [in] | timer | The stop watch timer to start  | 
  
   
Definition at line 51 of file stopwatch.h.
 
 
◆ ztimer_stopwatch_stop()
Stop the stop watch. 
The stop watch will no longer run.
- Parameters
 - 
  
    | [in] | timer | The stop watch timer to stop  | 
  
   
Definition at line 92 of file stopwatch.h.