File:  [Research Unix] / researchv10dc / 630 / man / src / p_man / man3 / realtime.3r
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.ds ZZ DEVELOPMENT PACKAGE
.TH REALTIME 3R "630 MTG"
.XE "realtime()"
.SH NAME
realtime \- terminal clock
.SH SYNOPSIS
\f3
unsigned long realtime ( ) 
\fR
.SH DESCRIPTION
The
.I realtime
function
returns the number of 60Hz clock ticks since
the terminal was booted.
.SH EXAMPLE
The following code could be used to roughly measure the performance
of \f2bitblt\f1.
.PP
.RS 3
.nf
.ft CM
#include <dmd.h>
unsigned long realtime();

unsigned long
perf_bitblt( sb, r, db, p, f)
Bitmap *sb, *db;
Rectangle r;
Point p;
Code f;
{
	unsigned long begin;

	begin = realtime ();
	bitblt (sb, r, db, p, f);
	return (realtime () - begin);
}
\fR
.fi
.RE
.ft R

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.