please sutotion .....................?

Dani AI

Generated

The title and first post contain obvious typos: "rester" most likely means "restart" and "sutotion" -> "solution." Interpreting the intent as "how to determine a machine's running time five minutes after a restart" produces actionable steps. As pointed out, the key term is ambiguous, and correctly asked for clarification; the pragmatic reading below gives repeatable ways to check or capture uptime on common platforms.

On Windows, read the OS last-boot timestamp and subtract from the current time. PowerShell example:

# Windows PowerShell: time since boot
$uptime = (Get-Date) - (Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime
$uptime           # timespan (days/hours/minutes/seconds)
$uptime.TotalMinutes  # numeric minutes since boot

To run a check exactly five minutes after boot use Task Scheduler: create a task triggered "At startup" and set the trigger option "Delay task for" to 5 minutes, or run a startup script that sleeps 300 seconds before measuring.

On Linux the same information is available from the kernel or uptime tools:

# pretty uptime
uptime -p

# uptime in whole minutes
awk '{print int($1/60) " minutes"}' /proc/uptime

To automate a post-boot check systemd timers can be used (OnBootSec=5min in the timer file calling a oneshot service).

Notes and caveats: these methods report system uptime, not an individual process runtime (process start times must be checked via ps or Get-Process StartTime). Sleep/hibernate, VM snapshots, or hypervisor tools can alter reported uptime. For embedded hardware, use an RTC or persistent log to track true elapsed runtime. If the original question meant something else (for example: "compute how long a specific compute job will run if started 5 minutes after restart"), the measurement method changes and logging the job start/stop times is recommended.

Recommended Answers

All 2 Replies

What is rester?
Also, a "compute" can take a very long time. Example?

The Almighty Answer to the Meaning of Life, the Universe, and Everything. It was calculated by the computer Deep Thought for seven million years.

So any "compute" that takes 5 minutes may be fine.

What is 'sutotion' for that matter.

So far it's an F for effort. Ariful_2, please try again to explain exactly what your problem is and then someone might be able to help you with it. So far we have absolutely nothing to go on...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.