GeekPolice
Welcome to GeekPolice.net!

GeekPolice is a website which provides free Computer Technical Support & Virus/Spyware Removal to our members.

You are viewing the forum as a "Guest" which doesn't give you member privileges to ask questions or post comments.

Take 30 seconds to register below and unlock the limitations of this website to discover new computer knowledge!

Test Your Computer's Reboot Time

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

Test Your Computer's Reboot Time

Post by Doctor Inferno on Tue 14 Oct 2008, 5:24 am



This works for both XP & Vista

1. Open Notepad and copy everything in the code box below and paste it in Notepad.

Code:
Option Explicit
On Error Resume Next
Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiff
MsgA = "Please close all running applications and click on OK."
KeyA = "HKEY_CURRENT_USER\Software\RestartTime\"
KeyB = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\RestartTime"
AppName = "[GeekPolice] Reboot Time"
Set Wsh = CreateObject("WScript.Shell")
PathFile = """" & WScript.ScriptFullName & """"
Result = wsh.RegRead(KeyA & "Times")
if Result = "" then
MsgResult = Msgbox (MsgA, vbOKCancel, AppName)
If MsgResult = vbcancel then WScript.Quit
Wsh.RegWrite KeyA & "Times", left(Time,8), "REG_SZ"
Wsh.RegWrite KeyB, PathFile, "REG_SZ"
Wsh.Run "cmd /c Shutdown -r -t 00", false, 0
else
Wsh.RegDelete KeyA & "Times"
Wsh.RegDelete KeyA
Wsh.RegDelete KeyB
TimeDiff = DateDiff("s",Result,left(Time,8))
MsgBox "Your computer reboots in " & TimeDiff & " seconds", VbInformation, AppName
end if
wscript.Quit



2. Save the file as Reboot Time.vbs on anywhere, your desktop for example. You can choose to save the file as any name you want, just make sure the file ends with a .vbs extension.


How to use
  • Double click on the script file you saved.
  • Close all the running applications and click the OK button in the dialog box.




  • The computer will reboot and when Windows and a dialog box will open displaying the time your computer took to reboot.




...And share your results here!


How it works:

In order to calculate the time of rebooting Windows, we will use a VB Script (Visual BASIC Scripting Edition). Let us learn first how it works. The script writes a value in the registry (HKCU\Software\Microsoft\Current Version\run) so that it can be started again when booting. Later, another value containing the time is written in the registry when the reboot starts. While rebooting, the script records the hour in a variable then checks if the first value containing the time exists. If so, it is then enough to compare two times in order to obtain the time of rebooting. Then, the two keys added to the registry are removed (the run key and the key where the time is stored).

If you wan to learn how to get a boot up time like mine, check this tutorial out: Use Multiple CPUs At Boot Up (Faster Boot up)

Script Source


Last edited by Doctor Inferno on Thu 27 Nov 2008, 9:10 pm; edited 5 times in total (Reason for editing : More information added.)


Please be a GeekPolice fan on Facebook!



Have we helped you? Help us! | Doctor by day, ninja by night.

Doctor Inferno
The GeekPolice


The GeekPolice

Posts: 12023
Joined: 2007-12-26
Operating System: Windows 7 Home Premium and Ultimate X64

View user profile http://twitter.com/GeekPolice

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by gloriafairy on Tue 14 Oct 2008, 7:37 am

Cool script doc. I got 109 seconds

gloriafairy

Senior Surfer
Senior Surfer

Posts: 221
Joined: 2008-08-01
Operating System: Vista

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Sir $wat on Tue 14 Oct 2008, 8:52 pm

gonna try this jus now...

Sir $wat

Master Surfer
Master Surfer

Posts: 2063
Joined: 2008-08-16
Operating System: Windows XP Professional SP3

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Agent Cosmic on Wed 15 Oct 2008, 3:46 am

Nice. I got this:





FunSubstance is the place to go for daily entertainment.

Agent Cosmic

Manager | Developer
Manager | Developer

Posts: 3272
Joined: 2008-03-07
Operating System: Windows 7

View user profile http://twitter.com/AgentCosmic/

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Sir $wat on Sat 18 Oct 2008, 6:25 am

i got 81 seconds...

Sir $wat

Master Surfer
Master Surfer

Posts: 2063
Joined: 2008-08-16
Operating System: Windows XP Professional SP3

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by fatguy on Sat 18 Oct 2008, 6:55 am

97 seconds

fatguy

Advanced Surfer
Advanced Surfer

Posts: 437
Joined: 2008-01-10
Operating System: vista and xp

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by .:vikas:. on Fri 07 Nov 2008, 2:05 am

nice script

.:vikas:.

Newbie Surfer
Newbie Surfer

Posts: 5
Joined: 2008-11-07
Operating System: [Dual Boot]Windows XP Pro SP3 +Windows Vista Ultimate X86 SP1

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by vikneshwaren on Thu 25 Dec 2008, 9:56 pm

I've got 106 secs

vikneshwaren

Senior Surfer
Senior Surfer

Posts: 251
Joined: 2008-12-23
Operating System: Microsoft Windows 7 Ultimate

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Twist154 on Sat 02 Jan 2010, 8:29 pm

Sweet, 62 seconds even after going through 2 separate duel boot loaders... WooT!

Twist154

GPA Student
GPA Student

Posts: 31
Joined: 2009-08-29
Operating System: 7 Ultimate

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Pink_Freud on Sat 13 Mar 2010, 1:42 pm

Cool script 75 seconds, here.


Pink_Freud

Newbie Surfer
Newbie Surfer

Posts: 19
Joined: 2010-03-13
Operating System: 7 Home Prem SP1 x64--XP Home SP3

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Pink_Freud on Sat 13 Mar 2010, 10:31 pm

I used a couple tweaks courtesy of Agent Cosmic from here and shaved 7 seconds.


Pink_Freud

Newbie Surfer
Newbie Surfer

Posts: 19
Joined: 2010-03-13
Operating System: 7 Home Prem SP1 x64--XP Home SP3

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by princeedward on Wed 12 May 2010, 12:40 pm

nice and thanks for this...



i guess it take quite long...isn't it? now how can i make it more faster...LOL

princeedward

Newbie Surfer
Newbie Surfer

Posts: 24
Joined: 2010-05-03
Operating System: WinXp:SP3

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by EzioAuditore on Thu 13 May 2010, 8:22 am

Suppose, when i come across the logon screen where i'm ask'd to enter password, i enter it after 5 min. Then will this extra time be added to the reboot time or its neglected?

EzioAuditore

GPA Student
GPA Student

Posts: 367
Joined: 2010-02-22
Operating System: Windows 7 Ultimate x64

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Doctor Inferno on Thu 13 May 2010, 8:37 am

I guess so. Why don't you try and let us know.


Please be a GeekPolice fan on Facebook!



Have we helped you? Help us! | Doctor by day, ninja by night.

Doctor Inferno
The GeekPolice


The GeekPolice

Posts: 12023
Joined: 2007-12-26
Operating System: Windows 7 Home Premium and Ultimate X64

View user profile http://twitter.com/GeekPolice

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by EzioAuditore on Thu 13 May 2010, 8:44 am

Ok dokey Doc.. Will try and let y'all know...

EzioAuditore

GPA Student
GPA Student

Posts: 367
Joined: 2010-02-22
Operating System: Windows 7 Ultimate x64

View user profile

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum