Move all time support to ddsrt
* Move wctime, mtime, etime types to ddsrt * Add ddsrt_time_wallclock * Change ddsrt_time_monontic, elapsed to use mtime, etime types * Remove now, now_mt, now_et * Rename X_to_sec_usec to ddsrt_X_to_sec_usec * add_duration_to_X to ddsrt_X_add_duration (to be in line with the existing ddsrt_time_add_duration) * elimination of ddsrt/timeconv.h, it added more in the way of complications than it did in making things more elegant * rename of q_time.[ch] to ddsi_time.[ch]: that now only deals with DDSI timestamps and durations on the wire Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
		
							parent
							
								
									1611adc20a
								
							
						
					
					
						commit
						77c3545f5e
					
				
					 65 changed files with 757 additions and 746 deletions
				
			
		| 
						 | 
				
			
			@ -167,7 +167,7 @@ CU_Theory ((const struct ops *ops, bool random, adj_fun_t adj, const char *adjna
 | 
			
		|||
  void *h = ops->new ();
 | 
			
		||||
  uint32_t i, nk = 0;
 | 
			
		||||
  uint64_t nn = 0;
 | 
			
		||||
  dds_time_t t0, t1;
 | 
			
		||||
  ddsrt_mtime_t t0, t1;
 | 
			
		||||
  t0 = ddsrt_time_monotonic ();
 | 
			
		||||
  for (uint32_t iter = 0; iter < MAX_ITERS; iter++)
 | 
			
		||||
  {
 | 
			
		||||
| 
						 | 
				
			
			@ -205,5 +205,5 @@ CU_Theory ((const struct ops *ops, bool random, adj_fun_t adj, const char *adjna
 | 
			
		|||
  }
 | 
			
		||||
  t1 = ddsrt_time_monotonic ();
 | 
			
		||||
  ops->free (h);
 | 
			
		||||
  printf (" %"PRIu64" %.0f ns/cycle\n", nn, (double) (t1 - t0) / (double) nn);
 | 
			
		||||
  printf (" %"PRIu64" %.0f ns/cycle\n", nn, (double) (t1.v - t0.v) / (double) nn);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue