T7529058
T7529058

Summary: Fix compilation on mac because high res clock there != system clock
simplified/made implementation more efficient
Also fix missing newlines in decoding the log

Reviewed By: @uddipta

Differential Revision: D2192397

sh19871122/wdt,electrum/wdt,electrum/wdt,lizhanhui/wdt,jqk6/wdt,linearregression/wdt,doctaweeks/wdt,KagamiChan/wdt,huge-data/wdt,chenokay/wdt,XiaosongWei/wdt,1yvT0s/wdt,Suninus/wdt,kitech/wdt,alebcay/wdt,fw1121/wdt,nikunjy/wdt,guiquanz/wdt,sh19871122/wdt,firstblade/wdt,ldemailly/wdt,wfxiang08/wdt,linearregression/wdt,wfxiang08/wdt,Suninus/wdt,luluandleilei/wdt,CodeJuan/wdt,daveloyall/wdt,ldemailly/wdt,daveloyall/wdt,sh19871122/wdt,daveloyall/wdt,luluandleilei/wdt,electrum/wdt,firstblade/wdt,CodeJuan/wdt,wrmsr/wdt,guiquanz/wdt,kuangtu/wdt,shaunstanislaus/wdt,nikunjy/wdt,ldemailly/wdt,fw1121/wdt,hanhailong/wdt,Suninus/wdt,wesley1001/wdt,kuangtu/wdt,alihalabyah/wdt,wrmsr/wdt,XiaosongWei/wdt,alihalabyah/wdt,jqk6/wdt,vemulapallisarat/wdt,Wingie/wdt,CodeJuan/wdt,1yvT0s/wdt,wrmsr/wdt,kitech/wdt,1yvT0s/wdt,chenokay/wdt,hanhailong/wdt,lizhanhui/wdt,wesley1001/wdt,ldemailly/wdt,KagamiChan/wdt,huge-data/wdt,lizhanhui/wdt,luluandleilei/wdt,doctaweeks/wdt,dieface/wdt,dieface/wdt,fw1121/wdt,shaunstanislaus/wdt,kuangtu/wdt,hanhailong/wdt,vemulapallisarat/wdt,doctaweeks/wdt,shaunstanislaus/wdt,huge-data/wdt,wfxiang08/wdt,firstblade/wdt,chenokay/wdt,nikunjy/wdt,bradparks/wdt,alihalabyah/wdt,bradparks/wdt,linearregression/wdt,luluandleilei/wdt,Wingie/wdt,jqk6/wdt,KagamiChan/wdt,guiquanz/wdt,alebcay/wdt,alebcay/wdt,XiaosongWei/wdt,nikunjy/wdt,bradparks/wdt,vemulapallisarat/wdt,kitech/wdt,wesley1001/wdt,huge-data/wdt,Wingie/wdt,dieface/wdt