• Windows operating time. How to find out how long your computer has been running

    IN lately Most users increasingly do not turn off their computers when they are finished working, but simply put them into sleep or hibernation mode. Many of us, without noticing it ourselves, may be surprised to discover when checking that the last reboot of the operating system was done a month ago, or even earlier.

    But sometimes it’s still worth doing, especially since modern fast SSD drives rebooting rarely takes more than 20-30 seconds.

    If you suddenly became interested in knowing how much it is uptime(time since the last restart of the operating system) of your macOS computer, then this article will tell you in detail where and how you can view it.

    It may be no less interesting to learn and total time your Mac from the moment you turn it on for the first time after purchase - that is, it total uptime for the entire operating time. Today we will tell you in this article exactly where and how to look at these indicators, as well as how to find out information about the last few computer reboots (and their time and date) running macOS. But first things first.

    Find out the operating time of Mac"and after it last download can be done in several ways - in the system information and using the application command "Terminal".

    Mac uptime in system information

    The easiest and most understandable way to do this is to look at the system information. To do this, follow these steps.

    1. Click the apple icon at the top left of your Mac's screen and in the drop-down menu... don't select anything yet.

    2. Press and hold the key on the keyboard "option". While it is pressed, you will see a new menu item in the drop-down list "System Information", this is exactly what we need to open.

    3. In the left part of the window that opens, select the line "BY" and you will see the current uptime of your Mac in the text line "Time after loading:" right.

    In our example, 50 minutes have passed since the last reboot of the computer. As you can see, everything is quite simple.

    Uptime Mac via terminal

    For those Mac users who are not afraid of the word "terminal", there is alternative way Find out your computer's uptime using this application. To do this, oddly enough, you need to run the following command in it.

    As a result, you will see information about the operating time of your computer since its last boot and the average load on it over the last 1, 5 and 15 minutes (numbers 1.50, 1.65 and 2.01 in the screenshot, respectively).

    In our example, the uptime is 53 minutes. This method is even faster than the first if you are “friends” with the macOS terminal.

    Total Mac uptime for all time

    And if uptime is usually taken to be the operating time of the system after the last reboot, then the next indicator is difficult to briefly name in Russian, except "total uptime for the entire time", or "total uptime" in English.

    As you probably already guessed, this indicator is a number that shows total amount hours your Mac has been running since it was first turned on. In addition, the presented data will be conveniently divided by user if several people work at the computer under different accounts.

    In order to find out the total uptime of your MacBook, enter the following command in the terminal.

    In our case, the total operating time of the computer is 7705.17 hours.

    Time of the last Mac reboot

    But if information about the last reboot of your computer (and this is easy to calculate knowing the uptime) is not enough for some, then such users may be interested in another command that shows the time of the last several reboots of their computer’s operating system.

    Of course, there is also a terminal here. To see the time and date of your Mac's last reboot, use the following command.

    As a result, you will receive a list of the latest macOS “reboots” over a fairly long period of time. You can see what it looks like in the image above.

    Perhaps that's all for today. Don't forget to check the uptime of your MacBook, you may need to reboot a long time ago!

    To know total computer operating time possible in several ways and means. In this article we will look at some: we will look at how to find out the operating time of the computer after turning it on, and also computer operating time after OS installation And computer operating time after purchase.

    Often, it is the third type that is needed, since when you purchase a used computer, you will probably want to know how long it has been running, since its reliability will depend on this time.

    Let's start with the first type - the operating time of the computer after turning it on. This can be done using built-in system monitoring utilities. Call up the “Run” window. To do this, press the key combination “Win ​​+ R”. In the input field, enter “CMD” (without quotes) to open the command window.

    In the command window we need to enter the following command (without quotes): “systeminfo”. We wait for the information to load and receive our data.

    In the field " Installation date" the operating system installation time is displayed, and below, in the "System boot time" field, exact time the last boot of the operating system in the time zone that is set on the computer. You can also view your time zone below in the list.

    As for the total operating time of the computer since the purchase itself, a simple command is not enough. The system does not store such data, but we can find this out from indirect data that does not clearly indicate this. For example, you can read S.M.A.R.T. parameters hard drive, view how long it was in operation. To do this, you need to install the program HDDExpert, download her for free Can . You don't need to do anything special. You just install the program and run it. It automatically scans your hard drive and displays the received data. In the field with the hourglass icon, you will see the total number of full hours that your hard drive has worked. Please note that this is the time work hard disk, so if you changed the hard disk, the time will be counted from the moment the new disk was installed.

    Sometimes you may need to find out how long your computer has been running. For example, in order to monitor the children’s compliance with the daily routine, check whether the electricity was turned off during your absence, or, finally, just out of curiosity.

    The easiest way to find out how long your computer has been running since the last boot of the operating system is to use command line. To do this:


    This method is convenient because it is fast, but it is not particularly informative since it only shows the time CONTINUOUS OPERATION. Besides this counter resets “every sneeze”, even if the computer goes into sleep mode for a couple of seconds.

    System log

    Much more information can be obtained by analyzing system logs. You can access them like this:


    TurnedOnTimesView

    Analyzing system logs is a good thing, but it can be labor intensive for the inexperienced user. Therefore, a utility that does not require installation was developed with the “talking” name TurnedOnTimesView. It is extremely simple to use:


    Total operating time

    There is also a way to find out how long the computer has worked in total over its entire electronic “life”. A computer only lasts as long as its components, and of particular interest is the hard drive, which always works as long as the computer is running. The hard disk controller stores information about the time and nature of its work in a special system area. This data can be retrieved quite simply:

    The need to check computer visits in their absence arises among parents who have forbidden their children to turn it on independently, among those who do not live alone in the apartment, or with the unpleasant discovery that someone is rummaging through your computer at work. electronic documents. You can find out when the computer was turned on using internal system resources and using third-party software.

    How to find out when the computer was turned on using the system log

    Every time you turn on your computer or laptop, the operations performed on it immediately begin to be recorded in the system log. It records an “event log”, from which you can set the date and time of any actions on the computer, running processes operating system.

    View the event log following the algorithm:

    • Open “Computer Management” (press “Win ​​+ X”, there is a corresponding line in the menu).
    • In the window of the main OS functions for working with a computer, select “Event Viewer”.
    • Click on the arrow on the left that opens a submenu, expand the “Windows Journal” menu.
    • Expand the menu using the arrow on the left, click “System”.
    • The central part will display statistics of all events; find the lines recording the time the PC was turned on and off in right time days.

    The screenshot shows that on 01/23/2016 the machine was turned off at 23:30, and on 01/24/2016 at 6:40 am.

    Go to the system log through “Administration” to find out when the computer was turned on

    You can go to the system log to obtain information about the time the computer was turned on in the absence of the owner in another way.

    Procedure for viewing the system log:

    • Expand Control Panel.
    • Click the “Administration” line.
    • Execute double click mouse on the “Event Viewer” item.
    • Expand “Windows Logs” on the left side of the window, click “System”.

    The screenshot shows that on 01/22/2016 the computer was turned off at 22:50, and on 01/23/2016 at 15:16.

    How to find out when the computer was turned on from the system “log file”

    See details of all events that happened in operating system it can be done in a difficult way. Open the “Windows” folder, find the “WindowsUpdate.log” file, open it in the “Notepad” application. Get a statistical report from the system.

    The browser search engine will help you understand the contents of the statistical report. Enter each event into its window and read what action was performed by the machine. All messages in the system "log file" are recorded in English letters And digital codes. Knowledge can be applied English language or the ability to use an online translator.

    TurnedOnTimesView program for system log analysis

    TurnedOnTimesView is a small utility with which you can analyze events in the Windows system log in a convenient form for a specified time range. Download it for free. To specify the correct sorting of records, click Start Time. You will be able to view the startup and shutdown times of the OS in each range.


    Checking whether the computer is turned on using the “Audit” policy

    In some Windows versions There is an “Audit” service, it records the startup of the PC. Monitoring is carried out for local and network inputs, the period of time spent in it is saved for all accounts.

    To activate “Login Audit” follow these steps:

    • Call the “Run…” application (“Win + R”).
    • Enter “gpedit.msc”, press “Enter” or “OK”.
    • Follow the chain “Computer Configuration” - “ Windows Configuration» – “Security Settings” – « Local policies" - "Audit Policy".
    • Select Audit Login Events.
    • In the “Properties” window, mark “Success” to track successful Windows starts, or “Failure” to track unsuccessful ones.

    From this moment on, Windows will begin recording all system events in the Security log.