This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <zlib.h> | |
| #include "kstring.h" | |
| // alias to gzgets with input order swapped | |
| char *kzgets(char *buf, int siz, gzFile fp) { return gzgets(fp, buf, siz); } | |
| int main(int argc, char *argv[]) | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | START=$(date +%s) | |
| sleep 100 | |
| END=$(date +%s) | |
| DIFF=$(( $END - $START )) | |
| printf '%dh:%dm:%ds\n' $(($DIFF/3600)) $(($DIFF%3600/60)) $(($DIFF%60)) | |
| # another way | |
| SECONDS=0 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | START=$(date +%s) | |
| sleep 100 | |
| END=$(date +%s) | |
| DIFF=$(( $END - $START )) | |
| printf '%dh:%dm:%ds\n' $(($DIFF/3600)) $(($DIFF%3600/60)) $(($DIFF%60)) | |
| # another way | |
| SECONDS=0 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | START=$(date +%s) | |
| sleep 100 | |
| END=$(date +%s) | |
| DIFF=$(( $END - $START )) | |
| printf '%dh:%dm:%ds\n' $(($DIFF/3600)) $(($DIFF%3600/60)) $(($DIFF%60)) | |
| # another way | |
| SECONDS=0 |