tsftomsu.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1996 by Sun Microsystems, Inc.
* All Rights Reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* tsftomsu - convert from a time stamp fraction to milliseconds
*/
#include "ntp_fp.h"
#include "ntp_stdlib.h"
int
int round;
{
register int i;
/*
* Essentially, multiply by 10 three times in l_fp form.
* The integral part is the milliseconds.
*/
val_ui = 0;
for (i = 3; i > 0; i--) {
}
/*
* Round the value if need be, then return it.
*/
val_ui++;
return (int)val_ui;
}