Perl Home
PERL Functions
© 2011 TutorialsPoint.COM
|
PERL times Function
Syntax
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:
|

|
|
|