•  Back 
  •  Process functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File5.12.19  Prusage                                                   TOS

 Name:         »Prusage« - Obtain resource information about current 
               process.

 Opcode:       286

 Syntax:       void Prusage ( int32_t *r );

 Description:  The function Prusage returns information about the 
               system resources required by the current process.

               The information is passed to the outside by a pointer r 
               to an array of 8 LONGs; the allocation is as follows:

                r[0]:   Process time spent in MiNT kernel
                r[1]:   Process time spent in its own program code
                r[2]:   Total process time spent by children of this 
                        process in MiNT kernel
                r[3]:   Total process time spent by children of this 
                        process in their own program code
                r[4]:   Memory allocated by process (in bytes)
                r[5]:   Reserved for future use
                r[6]:   Reserved
                r[7]:   Reserved

               All times are given in milliseconds.

 Return value: The function has no direct result.

 Availability: As of the first in MultiTOS integrated MiNT version 
               1.04.

 Group:        Process functions

 See also:     Binding   Psetlimit