|  | 
| typedef struct gavl_timer_s | gavl_timer_t | 
|  | Opaque timer structure. 
 | 
|  | 
This is a simple software timer, which can be used for synchronization purposes for cases wherer there is no synchronization with hardware devices available. 
◆ gavl_timer_t
Opaque timer structure. 
You don't want to know what's inside. 
 
 
◆ gavl_timer_create()
Create a timer. 
- Returns
- A newly allocated timer 
 
 
◆ gavl_timer_destroy()
Destroy a timer. 
- Parameters
- 
  
  
Destroys a timer and frees all associated memory 
 
 
◆ gavl_timer_start()
Start a timer. 
- Parameters
- 
  
  
 
 
◆ gavl_timer_stop()
◆ gavl_timer_get()
Get the current time of the timer. 
- Parameters
- 
  
  
- Returns
- Current time 
 
 
◆ gavl_timer_set()
Set the current time of the timer. 
- Parameters
- 
  
  
 
 
◆ gavl_benchmark_get_time()
      
        
          | GAVL_PUBLIC uint64_t gavl_benchmark_get_time | ( | int | flags | ) |  | 
      
 
Get the current time for benchmarking. 
- Parameters
- 
  
  
- Returns
- The time in arbitrary units
The returned value itself is meaningless since the timescale depends on the system. Use this only for relative comparisons for benchmarks. A textual description on how the values can be interpreted can be ontained with gavl_benchmark_get_desc 
 
 
◆ gavl_benchmark_get_desc()
      
        
          | GAVL_PUBLIC const char * gavl_benchmark_get_desc | ( | int | flags | ) |  | 
      
 
Get a description about the value returned by gavl_benchmark_get_time. 
- Parameters
- 
  
  
- Returns
- A string describing what the time value means