Homebrew Milliseconds on 3DS (DevKitPro)

  • Thread starter Thread starter Jayenkai
  • Start date Start date
  • Views Views 1,609
  • Replies Replies 1

Jayenkai

Makes Games
Member
Joined
Dec 25, 2007
Messages
415
Reaction score
257
Trophies
1
Age
46
Location
Bolton, England
Website
agameaweek.com
XP
1,071
Country
United Kingdom
Doing rather well with my 3DS Framework, but one little minor issue has me stumped.
How on earth can I get hold of Milliseconds on the thing?
I don't mind if it's "Since launch", "Since boot of device", "Since 1970", or whatever, as I can handle all the complicated maths stuff myself, but I just can't seem to get anything that's vaguely reliable.
Hours, seconds, months, years.. Sure.. But Mills? Nothing seems exactly stable.
I've tried a few hacky "It works for Linux" things, but those have proven to be quite erratic.

Any tips would be much appreciated. Thanks!
 
Having hunted manually through the raw .h files, I eventually stumbled upon "osGetTime();" which appears to give you fairly accurate Milliseconds (since 1st Jan 1980, apparently!)
It's included as part of the large 3ds.h include.
 

Site & Scene News

Popular threads in this forum