Annotation of researchv10dc/630/man/src/p_man/man3/realtime.3r, revision 1.1.1.1

1.1       root        1: .ds ZZ DEVELOPMENT PACKAGE
                      2: .TH REALTIME 3R "630 MTG"
                      3: .XE "realtime()"
                      4: .SH NAME
                      5: realtime \- terminal clock
                      6: .SH SYNOPSIS
                      7: \f3
                      8: unsigned long realtime ( ) 
                      9: \fR
                     10: .SH DESCRIPTION
                     11: The
                     12: .I realtime
                     13: function
                     14: returns the number of 60Hz clock ticks since
                     15: the terminal was booted.
                     16: .SH EXAMPLE
                     17: The following code could be used to roughly measure the performance
                     18: of \f2bitblt\f1.
                     19: .PP
                     20: .RS 3
                     21: .nf
                     22: .ft CM
                     23: #include <dmd.h>
                     24: unsigned long realtime();
                     25: 
                     26: unsigned long
                     27: perf_bitblt( sb, r, db, p, f)
                     28: Bitmap *sb, *db;
                     29: Rectangle r;
                     30: Point p;
                     31: Code f;
                     32: {
                     33:        unsigned long begin;
                     34: 
                     35:        begin = realtime ();
                     36:        bitblt (sb, r, db, p, f);
                     37:        return (realtime () - begin);
                     38: }
                     39: \fR
                     40: .fi
                     41: .RE
                     42: .ft R

unix.superglobalmegacorp.com

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