[nq] Show sub-millisecond times for serverprofile

Integer milliseconds are a little too coarse when the range is 1-3ms.
This commit is contained in:
Bill Currie 2022-04-08 18:29:04 +09:00
parent 8d725a1d0a
commit bffd0605b7

View file

@ -719,7 +719,8 @@ Host_Frame (float time)
{ {
double time1, time2; double time1, time2;
static double timetotal; static double timetotal;
int c, m; int c;
double m;
static int timecount; static int timecount;
if (!serverprofile->int_val) { if (!serverprofile->int_val) {
@ -746,7 +747,7 @@ Host_Frame (float time)
c++; c++;
} }
Sys_Printf ("serverprofile: %2i clients %2i msec\n", c, m); Sys_Printf ("serverprofile: %2i clients %5.3g msec\n", c, m);
} }