Guildenstern has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Win32::API; my $FREQ_INFO = pack("L4",0,0,0,0); my $CpuSpeed ||= new Win32::API ("cpuinf32", "cpuspeed", ["I"], "P") or die "Could not load DLL\n"; $FREQ_INFO = $CpuSpeed->Call(0); my ($in_cycles, $ex_ticks, $raw_freq, $norm_freq) = unpack("L4",$FREQ_ +INFO); print "In cycles: $in_cycles\n"; print "Ex ticks: $ex_ticks\n"; print "Raw freq: $raw_freq\n"; print "Norm freq: $norm_freq\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Difficulties with Win32::API
by tye (Sage) on Oct 31, 2000 at 22:25 UTC | |
|
(Guildenstern: Strange Solution) Re: Difficulties with Win32::API
by Guildenstern (Deacon) on Oct 31, 2000 at 22:57 UTC |