Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/tests/non262/Tuple/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 791 B image not shown  

SSL system.c

  Sprache: C
 

/****************************************************************************
**
*A  system.c                    ANUPQ source                   Eamonn O'Brien
**
*Y  Copyright 1995-2001,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
*Y  Copyright 1995-2001,  School of Mathematical Sciences, ANU,     Australia
**
*/


#include "pq_author.h"
#include "pq_defs.h"
#include <sys/types.h>
#include <sys/times.h>

/* system and operating system dependent pieces of code */

/* return CPU time in CLOCK TICKS -- the program should report
   correct CPU times for each of SunOS and Solaris if compiled
   and run under that operating system; under Solaris,
   CLK_TCK is defined in <limits.h>; if compiled under SunOS
   and run under Solaris, then multiply reported times by
   3/5 to get correct user time */


int runTime(void)
{
   struct tms buffer;

   times(&buffer);
   return buffer.tms_utime + buffer.tms_cutime;
}

/* print startup message */

void print_message(int work_space)
{
   time_t now;
   char *id;
   char string[100];

#if defined(HAVE_GETHOSTNAME)
   char s[100];
   gethostname(s, 100);
#else
   char *s = (char *)getenv("HOST");
   if (s == NULL)
      s = "unknown";
#endif

#if defined(GROUP)
   id = PQ_VERSION;
#endif

   printf("%s running with workspace %d on %s\n", id, work_space, s);
   now = time(NULL);
#ifdef HAVE_STRFTIME
   strftime(string, 100, "%a %b %d %H:%M:%S %Z %Y", localtime(&now));
   printf("%s\n", string);
#else
   printf("\n");
#endif
}

Messung V0.5 in Prozent
C=94 H=100 G=96

¤ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet am  2026-04-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.