• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Milliseconds Function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/>


References: 
 >Milliseconds Function? (From: Brian Moore <email@hidden>)

  • Prev by Date: Re: App and custom icon.
  • Next by Date: Re: theoretical idea - would this work?
  • Previous by thread: Re: Milliseconds Function?
  • Next by thread: Re: Milliseconds Function?
  • Index(es):
    • Date
    • Thread