freebsd-ports/cad/pisces/files/xtimer_fbsd.c
Ade Lovett 51e78bed9c Add PISCES, a two-dimensional device simulator which includes
models for surface mobility, impact ionization and photo-generation.
Quasi-three-dimensional simulation of cylindrically-symmetric devices is
also supported.

PR:		14686
Submitted by:	Gianlorenzo Masini <masini@uniroma3.it>
2000-05-03 14:59:53 +00:00

43 lines
1,008 B
C

/* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
*
* Copyright c 1988 The Board of Trustees of the Leland Stanford
* Junior University. All rights reserved. This routine may not
* be used without the prior written consent of Stanford University.
*
* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
*/
/* XTIMER - return cpu time usage. */
/* =======================================================================
* "XTIMER" - Return current (user) cpu time (in seconds) usage.
*
* Usage:
* subroutine xdate(tim)
* real tim - user seconds of cpu used.
*
* Original: Michael Eldredge -- Stanford University (may 88)
*
* -----------------------------------------------------------------------
*/
#include <sys/types.h>
#include <sys/times.h>
/*CENTRY*/
void
xtimer_(tim)
float* tim ;
{
float x ;
struct tms t ;
clock_t times() ;
(void)times(&t) ;
x = (float)t.tms_utime / 60.0 ;
*tim = x ;
}
/*ENDCENTRY*/