Test Your Computer's Reboot Time

View previous topic View next topic Go down

Test Your Computer's Reboot Time

Post by Doctor Inferno on Tue Oct 14, 2008 10: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 Fri Nov 28, 2008 3:10 am; 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
Administrator
Administrator

Posts Posts : 12015
Joined Joined : 2007-12-26
Gender Gender : Male
OS OS : Windows 7 Home Premium and Ultimate X64
Protection Protection : Kaspersky PURE and Malwarebytes' Anti-Malware
Points Points : 104600
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by gloriafairy on Tue Oct 14, 2008 12:37 pm

Cool script doc. I got 109 seconds

gloriafairy
Senior
Senior

Posts Posts : 221
Joined Joined : 2008-08-01
Gender Gender : Female
OS OS : Vista
Points Points : 30833
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Sir $wat on Wed Oct 15, 2008 1:52 am

gonna try this jus now...



Sir $wat
Top Dog
Top Dog

Posts Posts : 2078
Joined Joined : 2008-08-16
Gender Gender : Male
OS OS : Windows XP Professional SP3
Protection Protection : Panda Cloud
Points Points : 34171
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

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

Nice. I got this:





FunSubstance is the place to go for daily entertainment.

Agent Cosmic
Master
Master

Posts Posts : 3267
Joined Joined : 2008-03-07
Gender Gender : Male
OS OS : Windows 7
Protection Protection : ESET Smart Security
Points Points : 50438
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

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

i got 81 seconds...



Sir $wat
Top Dog
Top Dog

Posts Posts : 2078
Joined Joined : 2008-08-16
Gender Gender : Male
OS OS : Windows XP Professional SP3
Protection Protection : Panda Cloud
Points Points : 34171
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

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

97 seconds

fatguy
Leader
Leader

Posts Posts : 436
Joined Joined : 2008-01-10
OS OS : vista and xp
Points Points : 32872
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

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

nice script

.:vikas:.
Novice
Novice

Posts Posts : 5
Joined Joined : 2008-11-07
Gender Gender : Male
OS OS : [Dual Boot]Windows XP Pro SP3 +Windows Vista Ultimate X86 SP1
Points Points : 29510
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by vikneshwaren on Fri Dec 26, 2008 3:56 am

I've got 106 secs Hooray!









vikneshwaren
Senior
Senior

Posts Posts : 251
Joined Joined : 2008-12-23
Gender Gender : Male
OS OS : Microsoft Windows 7 Ultimate
Points Points : 29425
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Twist154 on Sun Jan 03, 2010 2:29 am

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

Twist154
Novice
Novice

Posts Posts : 39
Joined Joined : 2009-08-29
Gender Gender : Male
OS OS : 7 Ultimate
Points Points : 26964
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

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

Cool script Right On! 75 seconds, here.


Pink_Freud
Novice
Novice

Posts Posts : 19
Joined Joined : 2010-03-13
Gender Gender : Male
OS OS : 7 Home Prem SP1 x64--XP Home SP3
Protection Protection : MSE, MBAM on demand Adblock Plus, MVPS Hosts
Points Points : 24693
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Pink_Freud on Sun Mar 14, 2010 4:31 am

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


Pink_Freud
Novice
Novice

Posts Posts : 19
Joined Joined : 2010-03-13
Gender Gender : Male
OS OS : 7 Home Prem SP1 x64--XP Home SP3
Protection Protection : MSE, MBAM on demand Adblock Plus, MVPS Hosts
Points Points : 24693
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

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

nice and thanks for this... Bow or Thanks



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

princeedward
Novice
Novice

Posts Posts : 24
Joined Joined : 2010-05-03
Gender Gender : Male
OS OS : WinXp:SP3
Protection Protection : Avast Anti Virus 4.8
Points Points : 24290
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by EzioAuditore on Thu May 13, 2010 1:22 pm

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?


Previously 'Ranjan'.



Safety and Peace upon you.

Nothing is True, Everything is Permitted!

EzioAuditore
Senior
Senior

Posts Posts : 367
Joined Joined : 2010-02-22
Gender Gender : Male
OS OS : Windows 7 Ultimate x64
Protection Protection : KIS 2010, MBAM Pro, SAS, Sandboxie, Windows Defender
Points Points : 25684
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Doctor Inferno on Thu May 13, 2010 1:37 pm

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


Please be a GeekPolice fan on Facebook!



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

Doctor Inferno
Administrator
Administrator

Posts Posts : 12015
Joined Joined : 2007-12-26
Gender Gender : Male
OS OS : Windows 7 Home Premium and Ultimate X64
Protection Protection : Kaspersky PURE and Malwarebytes' Anti-Malware
Points Points : 104600
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by EzioAuditore on Thu May 13, 2010 1:44 pm

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


Previously 'Ranjan'.



Safety and Peace upon you.

Nothing is True, Everything is Permitted!

EzioAuditore
Senior
Senior

Posts Posts : 367
Joined Joined : 2010-02-22
Gender Gender : Male
OS OS : Windows 7 Ultimate x64
Protection Protection : KIS 2010, MBAM Pro, SAS, Sandboxie, Windows Defender
Points Points : 25684
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by EzioAuditore on Thu May 13, 2010 5:38 pm

Hah! I was right. That does matter. :cool2:

Password set to off- 64s
Password set to on and after waiting for sometime at the logon screen- 220s


Previously 'Ranjan'.



Safety and Peace upon you.

Nothing is True, Everything is Permitted!

EzioAuditore
Senior
Senior

Posts Posts : 367
Joined Joined : 2010-02-22
Gender Gender : Male
OS OS : Windows 7 Ultimate x64
Protection Protection : KIS 2010, MBAM Pro, SAS, Sandboxie, Windows Defender
Points Points : 25684
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by freddyk on Thu Jul 15, 2010 7:49 pm

sorry to bump this but does it work on windows 7, if not whats the best way to test it?

freddyk
Novice
Novice

Posts Posts : 18
Joined Joined : 2010-07-01
Gender Gender : Male
OS OS : Windows 7 Ultimate x86
Protection Protection : NOD 32, MalB, SandD,Ad-Aware
Points Points : 23732
# Likes # Likes : 0

View user profile

Back to top Go down

Re: Test Your Computer's Reboot Time

Post by Pink_Freud on Thu Feb 16, 2012 2:05 am



Wait WHUUT? 11 seconds??? Holy Harddrive Batman!

nLited XP SP3 in V-Box, Win 7 x64 Host

Pink_Freud
Novice
Novice

Posts Posts : 19
Joined Joined : 2010-03-13
Gender Gender : Male
OS OS : 7 Home Prem SP1 x64--XP Home SP3
Protection Protection : MSE, MBAM on demand Adblock Plus, MVPS Hosts
Points Points : 24693
# Likes # Likes : 0

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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