Re: Milliseconds Function?
Re: Milliseconds Function?
- Subject: Re: Milliseconds Function?
- From: Paul Ferguson <email@hidden>
- Date: Sat, 26 Jan 2002 10:41:47 -0800
On Friday, January 25, 2002, at 05:12 PM, Brian Moore wrote:
Can anyone help me?
This function is based on the UpTime() API, which is supposedly very
efficient:
unsigned int UpTimeInMilliseconds()
{
unsigned int result;
Nanoseconds n = AbsoluteToNanoseconds(UpTime());
unsigned long long int i = n.hi;
i <<= 32;
i += n.lo;
i /= 1000000;
result = i;
return result;
}
<fergy/>