The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Win32::Utilization - Perl extension for Win32 system utilization

SYNOPSIS

use Win32::Utilization;

 my $cpu = CPU_per();
 my $mem = mem_per();
 my $c   = drive_per('c');

DESCRIPTION

There lacks a module to detect win32 system utilization in CPAN. I simply wrap some Windows API for easy using under perl.Note: it automatically export 3 funcations when using it, and all three return a 0-100 number to show utilization respectly.

EXPORT

mem_per for mem CPU_per for CPU drive_per for hard disks

AUTHOR

xiaoyafeng: please mail to xyf@cpan.org for any issues.

COPYRIGHT AND LICENSE

Copyright (C) 2012 by xiaoyafeng

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.