Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Cephes/qfloat/   (Cephes Mathematical Library ©)  Datei vom 12.5.2026 mit Größe 696 B image not shown  

Quelle  time-it.c

  Sprache: C
 

/* Reports run time, in seconds, for a command.
   The command argument can have multiple words, but then
   it has to be quoted, as for example

      time-it "command < file1 > file2"

   The time interval resolution is one whole second.  */



#include <time.h>
int system ();
int printf ();

int
main (argv, argc)
     int argv;
     char **argc;
{
  time_t t0, t1;

  if (argv < 2)
    {
      printf ("Usage: time-it name_of_program_to_be_timed\n");
      exit (1);
    }
  time (&t0);
  /* Wait til the clock changes before starting.  */
  do
    {
      time (&t1);
    }
  while (t1 == t0);
  system (argc[1]);
  t0 = t1;
  time (&t1);
  printf ("%ld seconds.\n", t1 - t0);
  exit (0);
}

Messung V0.5 in Prozent
C=95 H=60 G=79

¤ Dauer der Verarbeitung: 0.8 Sekunden  (vorverarbeitet am  2026-06-14) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.