www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/28/09:04:07

From: "Stefan Wilhelm, BWL1, Tel 3563" <WILHELM AT bwl DOT bwl DOT th-darmstadt DOT de>
Organization: Technical University Darmstadt
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 28 Feb 1995 14:10:58 GMT+0100
Subject: clock() not implemented?
Reply-To: Wilhelm AT bwl DOT bwl DOT th-darmstadt DOT de

Hi there,
i use djgpp 1.12.m3.
if i use in C++
   #include <time.h>
   ...
   clock_t clock(void);
   clock_t start = clock();
i get a linker error
   undefined reference to 'clock(void)'

However
   #include <time.h>
   ...
   time_t time(time_t *);
   time_t start = time(0);
works fine.

But I need CPU-time in more detail.      with best regards

   Stefan Wilhelm

   Fachgebiet Fertigungs- und Materialwirtschaft
   Fachbereich 1
   Technische Hochschule Darmstadt
   Hochschulstr. 3
   64289 Darmstadt
   Germany

   Internet    : wilhelm AT bwl DOT bwl DOT th-darmstadt DOT de
   phone       : +49-6151163563
   FAX         : +49-6151165162

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019