< Perl Programming < Keywords
![](../../../I/Crystal_Clear_action_apply.png.webp)
The code
The times keyword
times returns a four-element list that contains the user and the system time in seconds as well as any exited children of it.
Syntax
times
Examples
![](../../../I/Crystal_Clear_action_apply.png.webp)
($user, $system, $cuser, $csystem) = times;
print ($user, $system, $cuser, $csystem) . "\n";
print "\n";
print "'" . $user . "', '" . $system . "', '" . $cuser . "', '" . $csystem . "'\n";
prints first consecutively the user, system time, and the exited children (non did exist), then with separated with a comma:
00.01500 '0', '0.015', '0', '0'
See also
gmtime | localtime | time | times | utime |
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.