search for: spenttime

Displaying 2 results from an estimated 2 matches for "spenttime".

2009 Jan 07
3
[LLVMdev] LLVM optmization
...t=%ld ",ret , GetCurrentThreadId(),num); return (unsigned long) ret; } ///cronometro unsigned long tini; unsigned long tfim; #define getmilisecs(x) (x) #define num_th 100 unsigned long milisecs() { return getmilisecs(tfim-tini);}; unsigned long secs() { return milisecs()/1000;}; const char *spenttime () { static char buffer[64]; unsigned long systime = secs(); unsigned long milisectime = milisecs()%1000; sprintf(buffer,"%02d:%02d:%02d:%03d",systime/3600,(systime%3600)/60,(systime%3600)%60,milisectime); return (const char*) buffer; }; //fim cronometro int main(int a, char **...
2009 Jan 08
0
[LLVMdev] LLVMdev Digest, Vol 55, Issue 16
...gt; > ///cronometro > > unsigned long tini; > > unsigned long tfim; > > #define getmilisecs(x) (x) > > #define num_th 100 > > unsigned long milisecs() { return getmilisecs(tfim-tini);}; > > unsigned long secs() { return milisecs()/1000;}; > > const char *spenttime () > > { > > static char buffer[64]; > > unsigned long systime = secs(); > > unsigned long milisectime = milisecs()%1000; > > sprintf(buffer,"%02d:%02d:%02d:%03d",systime/3600,(systime%...