Deliriom Tech Notes

jeudi 13 septembre 2012

java - System.currentTimeMillis vs System.nanoTime - Stack Overflow

java - System.currentTimeMillis vs System.nanoTime - Stack Overflow:

For example, to measure how long some code takes to execute:

long startTime = System.nanoTime();
// ... the code being measured ...
long estimatedTime = System.nanoTime() - startTime;
Publié par Unknown à 09:52
Envoyer par e-mailBlogThis!Partager sur XPartager sur FacebookPartager sur Pinterest

Aucun commentaire:

Enregistrer un commentaire

Article plus récent Article plus ancien Accueil
Inscription à : Publier les commentaires (Atom)

Archives du blog

  • ►  2014 (6)
    • ►  septembre (2)
    • ►  août (2)
    • ►  juillet (2)
  • ►  2013 (1)
    • ►  avril (1)
  • ▼  2012 (12)
    • ►  décembre (2)
    • ▼  septembre (10)
      • android - Changing locale: Force activity to reloa...
      • android - getSize() giving me errors - Stack Overflow
      • layout - Android: How to get screen dimensions - S...
      • CraftyFella's Blog: Syntax Highlighting with Blogg...
      • CraftyFella's Blog: Syntax Highlighting with Blogg...
      • android - What is the default audio stream of TTS?...
      • java - System.currentTimeMillis vs System.nanoTime...
      • audio - Change Media volume in Android? - Stack Ov...
      • Center text in a toast in Android - Stack Overflow
      • Test

Qui êtes-vous ?

Unknown
Afficher mon profil complet
Thème Simple. Fourni par Blogger.