Homebrew 3DS developement - delay command in c for 3ds

  • Thread starter Thread starter julian20
  • Start date Start date
  • Views Views 2,045
  • Replies Replies 10
A sleep function? svcSleepThread(s64 ns); Where ns is in nanoseconds. You can also create events and mutexes which you can wait on with svcWaitSynchronization or svcWaitSynchronizationN. If that does not answer your question then try to be a little more specific.
 
  • Like
Reactions: Margen67
A sleep function? svcSleepThread(s64 ns); Where ns is in nanoseconds. You can also create events and mutexes which you can wait on with svcWaitSynchronization or svcWaitSynchronizationN. If that does not answer your question then try to be a little more specific.

TX!!!
 
  • Like
Reactions: Margen67
It's in nanoseconds. If you need a delay which are actual seconds, multiply it by 1.000.000.000 (1000 * 1000 * 1000, because multiplying by 1000 will give you microseconds, and then another 1000 will give you milliseconds, then finally, the last 1000 gives seconds). So if you're trying to wait 5 seconds, 5 * 1.000.000.000 should do it.
 
It's in nanoseconds. If you need a delay which are actual seconds, multiply it by 1.000.000 (1000 * 1000, because multiplying by 1000 will give you milliseconds, and then another 1000 will give you actual seconds). If you only need a specific amount of milliseconds, just multiply it by 1000. So if you're trying to wait 5 seconds, 5 * 1.000.000 should do it.

1 second is 1.000.000.000 nanoseconds, not 1.000.000 :)
 

Site & Scene News

Popular threads in this forum