svn path=/trunk/boinc/; revision=1346
This commit is contained in:
Dan Werthimer 2003-06-10 18:50:43 +00:00
parent 29b8985b51
commit c5bc6572ab
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,9 @@
#include <cstdlib>
#include <cmath>
#ifndef _UTIL_H_
#define _UTIL_H_
extern int double_to_ydhms (double x, int smallest_timescale, char *buf);
extern void get_byte_string(double nbytes, double total_bytes, char* str, int len);
extern double dtime();
@ -72,3 +75,5 @@ static inline int calculate_exponential_backoff(int n, double MIN)
{
return (int) rand_range(MIN, exp((double)n));
}
#endif