chg bench readable measure
This commit is contained in:
		
							parent
							
								
									ee2310cb39
								
							
						
					
					
						commit
						0b148fe3f0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								client.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								client.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -292,7 +292,7 @@ int main(int argc, const char *argv[]){
 | 
			
		|||
        if (result.tv_sec == 0) avg = result.tv_nsec;
 | 
			
		||||
        else avg = result.tv_sec * 1e9 + result.tv_nsec;
 | 
			
		||||
        avg /= bench.op_count;
 | 
			
		||||
        fprintf(stdout,"operation: %lf ns/op\n",avg);
 | 
			
		||||
        fprintf(stdout,"operation: %lf us/op\n",avg / 1000.0);
 | 
			
		||||
        fprintf(stdout,"resolution: %ld sec %ld ns\n",bench.resolution.tv_sec,bench.resolution.tv_nsec);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue