<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=Xamarin.Android%E3%81%A7CPU%E3%81%AE%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF%E5%91%A8%E6%B3%A2%E6%95%B0%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B</id>
	<title>Xamarin.AndroidでCPUのクロック周波数を取得する - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=Xamarin.Android%E3%81%A7CPU%E3%81%AE%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF%E5%91%A8%E6%B3%A2%E6%95%B0%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B"/>
	<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=Xamarin.Android%E3%81%A7CPU%E3%81%AE%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF%E5%91%A8%E6%B3%A2%E6%95%B0%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B&amp;action=history"/>
	<updated>2026-06-05T21:24:16Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://monobook.org/w/index.php?title=Xamarin.Android%E3%81%A7CPU%E3%81%AE%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF%E5%91%A8%E6%B3%A2%E6%95%B0%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B&amp;diff=14334&amp;oldid=prev</id>
		<title>Administrator: ページの作成:「Linuxでよくあるsysfsから取得する方法がAndroidでも使える。  == 実装例 == &lt;source lang=&quot;csharp&quot;&gt; int GetMinFreq(int core) {     return Re…」</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=Xamarin.Android%E3%81%A7CPU%E3%81%AE%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF%E5%91%A8%E6%B3%A2%E6%95%B0%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B&amp;diff=14334&amp;oldid=prev"/>
		<updated>2021-04-20T07:03:18Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「&lt;a href=&quot;/wiki/Linux&quot; title=&quot;Linux&quot;&gt;Linux&lt;/a&gt;でよくある&lt;a href=&quot;/w/index.php?title=Sysfs&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;「Sysfs」 (存在しないページ)&quot;&gt;sysfs&lt;/a&gt;から取得する方法が&lt;a href=&quot;/wiki/Android&quot; title=&quot;Android&quot;&gt;Android&lt;/a&gt;でも使える。  == 実装例 == &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; int GetMinFreq(int core) {     return Re…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Linux]]でよくある[[sysfs]]から取得する方法が[[Android]]でも使える。&lt;br /&gt;
&lt;br /&gt;
== 実装例 ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
int GetMinFreq(int core)&lt;br /&gt;
{&lt;br /&gt;
    return ReadIntValue($&amp;quot;/sys/devices/system/cpu/cpu{core}/cpufreq/cpuinfo_min_freq&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int GetMaxFreq(int core)&lt;br /&gt;
{&lt;br /&gt;
    return ReadIntValue($&amp;quot;/sys/devices/system/cpu/cpu{core}/cpufreq/cpuinfo_max_freq&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int GetCurFreq(int core)&lt;br /&gt;
{&lt;br /&gt;
    return ReadIntValue($&amp;quot;/sys/devices/system/cpu/cpu{core}/cpufreq/scaling_cur_freq&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int ReadIntValue(string path)&lt;br /&gt;
{&lt;br /&gt;
    if (!File.Exists(path))&lt;br /&gt;
    {&lt;br /&gt;
        return -1;&lt;br /&gt;
    }&lt;br /&gt;
    var text = File.ReadAllText(path);&lt;br /&gt;
    if (!int.TryParse(text, out var value))&lt;br /&gt;
    {&lt;br /&gt;
        return -1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return value;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[category: Xamarin.Android]]&lt;/div&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
</feed>