Uptime measure アップタイム測定

Measure=Uptime measures the time since the last restart of the computer.Measure=Uptime 最後にコンピュータを再起動してからの時間を測定します。

The string value of the measure is defined by the Format option. The number value will be the amount of time since the last restart in seconds.数値データ文字列値は、Formatオプションで定義されています。数値は、秒単位の最後に再起動してからの時間の量になります。

Optionsオプション

General measure options一般的な測定オプション
All general measure options are valid.一般的な測定オプションはすべて有効です。
Format Default: %4!i!d %3!i!:%2!02i!Format デフォルト: %4!i!d %3!i!:%2!02i!
Format of the measure value. This can be a combination of text and the following codes:
  • %4: Days.%4: 日々。
  • %3: Hours.%3:時間
  • %2: Minutes.%2:議事録
  • %1: Seconds.%1:秒
The following modify the codes:
  • !i!: Putting this after the format code shows the numbers with no leading zeros.!i!フォーマット・コードの後に??これを置くと、先行ゼロなしの数字が表示されます。
  • !02i!: Putting this after the format code shows the numbers with leading zeros.
    The number following the 0, as in !02i! above, defines the total length you want for the value, padded with zeros as needed to achieve the length.!02i!:これをフォーマットコードの後に??置くと、数字の先頭にゼロが付きます。
    次の番号0のように、!02i!上記は、長さを達成するために、必要に応じてゼロで埋め値のため、必要な全体の長さを定義します。
AddDaysToHours Default: 1AddDaysToHours デフォルト: 1
If set to 1 and if %4 (days) is not used in the Format option, %3 (hours) is incremented by days * 24. Set to 0 to disable this behaviour.設定した場合1とあれば%4(日)で使用されていないFormatオプション、%3(時間)日数に* 24.設定だけインクリメントされ0、この動作を無効にします。
SecondsValue
This will override the default behavior of the measure. Instead of measuring the time since the last restart of the system, this option will define a number of seconds. The Format option can then be used to format that number of seconds to days, hours, minutes and/or seconds as desired.

An example might be:例は次のとおりです。

[MeasureFormatSeconds]
Measure=UpTime
SecondsValue=[SomeMeasureName]
Format="%4!i!d %3!i!h %2!i!m %1!i!s"
DynamicVariables=1

Example

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeasureUptime]
Measure=Uptime
Format="%4!i! days, %3!i! hours, %2!i! minutes %1!i! seconds"

[MeterUptime]
Meter=String
MeasureName=MeasureUptime
FontSize=12
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text="Uptime: %1"

Note for Windows 10Windows 10に関する注意

Starting with Windows 8, the standard "shut down" functionality now does a "hybrid shut down", in order to make the system start much faster when you start it up again. What this does is "hibernate" the system / kernel part of Windows, and shut down the user part. When Windows restarts, the underlying boot up of the system much is faster, followed by loading your profile and applications normally.Windows 8以降では、標準の「シャットダウン」機能で「ハイブリッドシャットダウン」が実行されるようになりました。これにより、システムを再起動したときの起動時間が大幅に短縮されます。これが何をするかは、Windowsのシステム/カーネル部分を"休止状態"にして、ユーザー部分をシャットダウンすることです。Windowsが再起動すると、システムの基本的な起動ははるかに速くなり、その後は通常どおりプロファイルとアプリケーションをロードします。

Windows (and thus Uptime) does not see this as a full shutdown of your system. So the system uptime value will not be reset to zero. If you want more control over this, you can create two shortcuts, and use the one you want depending on whether you wish a "full" shut down, or the normal "hybrid" one.Windows(そしてUptime)はこれをあなたのシステムの完全なシャットダウンとは見なしません。そのため、システムの稼働時間の値はゼロにリセットされません。これをもっと細かく制御したい場合は、2つのショートカットを作成し、「完全」なシャットダウンか通常の「ハイブリッド」なのかに応じて必要なショートカットを使用できます。

Normal / Hybrid Shut Down:
%windir%\System32\shutdown.exe /s /hybrid /f /t 00通常/ハイブリッドシャットダウン:
%windir%\System32\shutdown.exe /s /hybrid /f /t 00

Full Shut Down:
%windir%\System32\shutdown.exe /s /f /t 00フルシャットダウン
%windir%\System32\shutdown.exe /s /f /t 00

You can create these shortcuts, and put them on your desktop or pin them to your Windows 10 Start menu. "Restart" always does a full system restart and is not affected.これらのショートカットを作成してデスクトップに配置するか、Windows 10の[スタート]メニューに固定することができます。「再起動」は常にシステム全体の再起動を行うので影響を受けません。

Alternatively, you can use a SysInfo plugin measure to get a timestamp value for when the user account logged on to Windows with the USER_LOGINTIME SysInfoType option. When a standard hybrid shutdown is done, this will then reflect when the restart took place. Use the value of this measure with the SecondsValue option in an Uptime measure to format the elapsed seconds.またはSysInfoプラグインメジャーを使用して、ユーザーアカウントがUSER_LOGINTIME SysInfoTypeオプションでWindowsにログオンしたときのタイムスタンプ値を取得することもできます。標準のハイブリッドシャットダウンが行われると、これは再起動が行われたときを反映します。SecondsValueUptimeメジャーのオプションと一緒にこのメジャーの値を使用して、経過秒数をフォーマットします。

Example:例:

[MeasureCurrentTime]
Measure=Time

[MeasureUserLoginTime]
Measure=Plugin
Plugin=SysInfo
SysInfoType=USER_LOGONTIME
UpdateDivider=-1

[MeasureFormatSeconds]
Measure=UpTime
SecondsValue=([MeasureCurrentTime:] - [MeasureUserLoginTime:])
Format="%4!i!d %3!i!h %2!i!m"
DynamicVariables=1

関連記事

スポンサーリンク

SSDの現在のTBWを調べる方法 SSDの残り寿命 (Windows Linux CentOS)

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る