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