emergency commit
[cl-cudd.git] / distr / util / prtime.c
blob236eafb75a4f668572f0bff82815abf88ca96530
1 /* LINTLIBRARY */
3 #include <stdio.h>
4 #include "util.h"
7 /*
8 * util_print_time -- massage a long which represents a time interval in
9 * milliseconds, into a string suitable for output
11 * Hack for IBM/PC -- avoids using floating point
14 char *
15 util_print_time(unsigned long t)
17 static char s[40];
19 (void) sprintf(s, "%lu.%02lu sec", t/1000, (t%1000)/10);
20 return s;