Tutorials Point


  Perl Home

  PERL Functions

© 2011 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL times Function



Syntax

times


Definition and Usage

Returns a four-element list giving the user, system, child, and child system times for the current process and its children.

Return Value

  • ARRAY, ($usertime, $systemtime, $childsystem, $childuser)

Example

While running this program from root:

#!/usr/bin/perl -w

($usertime, $systemtime, $childsystem, $childuser) = times();
print("times() $usertime $systemtime $childsystem $childuser\n");

It will produce following results:

times() 0 0 0 0


Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names