Scripto Bobble-head Games Logo

Welcome to PoshCode and the 2011 Scripting Games!

The Scripting Games are a special event put on by the Microsoft scripting guys. Script submissions, grading, and script archives are hosted by PoshCode.org. You may want to check out the Official Rules, and the Scripting Games Information page for event information and contest details, since this site is purely for submitting your contest entry!

Remember: You will not be able to see other user's scripts until after the deadline for an event has passed, and you will not be able to submit scripts for an event once that event has passed.

Note: If you have any problems logging in, please clear your cookies. If you still have problems, please use the "Contact Us" tab above or post directly on GetSatisfaction.

Searching for Scripts in category 'Beginner Event 10'

  • Beginner_Event10.ps1 by Debra D. 21 Apr 2011 07:24 AM UTC
    by 3 users

    Beginner Event 10
    2 Comments

    Output the average time for Start-Sleep command to execute.

  • Test-SleepPrecision by Daniel Dittenhafer 21 Apr 2011 02:42 AM UTC
    by 2 users

    Beginner Event 10
    3 Comments

    Script to test Start-Sleep based on a specified sample size and sleep duration. Uses [System.Diagnostics.Stopwatch] and Start-Sleep to time the execution of the Start-Sleep commands.

  • BeginnerEvent10 by Adam Bacon 20 Apr 2011 08:32 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    Working out the average for a given time value after that value has been repeated a given number of times. I decided to use parameters in this script to make more re-usable, and finally add official help and examples to run the script as well as useful comments throughout the script, and basic error handling.

  • CalcAverageSleepTime by Vincent Van Hecke 20 Apr 2011 07:23 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Calculate the real average value (in milliseconds) of multiple Start-sleep commands

  • Beginner10_2011_andre.gibel.ps1 by Andre Gibel - CH 20 Apr 2011 05:37 PM UTC
    by 3 users

    Beginner Event 10
    2 Comments

    Beginner10_2011_andre.gibel.ps1

  • WC-Beginners10.ps1 by Sidewinder 20 Apr 2011 01:14 PM UTC
    by 3 users

    Beginner Event 10
    1 Comments

    Measure the accuracy of the Start-Sleep cmdlet

  • SleepScanner_2011SG_B_E10.ps1 by Eric Sachs 19 Apr 2011 11:30 PM UTC
    by 2 users

    Beginner Event 10

    Script monitors the runtime of start-sleep. Script requires two parameters -tests and -seconds to set the number of tests and how long each test should be performed for.

  • PS_Command_Average_timecounter by Scott A. Alvarino 19 Apr 2011 04:51 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    This script checks the average time it takes to complete. you can supply t a command as a argument or you don't have to put an argument and will run the command from the event showing you the average time for that.

  • Beginner10 by Thiyagu 19 Apr 2011 04:33 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Using Measure-Command to calculate the time taken for multiple Start-Sleep <seconds>

  • Find-TimeDifference by John Grenfell 19 Apr 2011 04:05 PM UTC
    by 2 users

    Beginner Event 10

    My Attempt at "The 2011 Scripting Games Beginner Event 10: Use PowerShell to Measure Time to Complete a Command"

  • event10.ps1 by Vladimir Stepic 19 Apr 2011 01:46 PM UTC
    by 2 users

    Beginner Event 10

    This script measure time to complete command.

  • Measure-Pause by Oleg Suchkov 19 Apr 2011 11:24 AM UTC
    by 2 users

    Beginner Event 10

  • Start-Sleep test by Andrew Mello 19 Apr 2011 02:20 AM UTC
    by 3 users

    Beginner Event 10
    1 Comments

  • Get-AverageRuntime.ps1 by MarkDW 19 Apr 2011 01:54 AM UTC
    by 3 users

    Beginner Event 10
    1 Comments

    Scripting Games 2011 Beginner Event 10 Get-AverageRuntime.ps1 Gets the average run time of a command. By default the script will get the average of 5 samples of the start-sleep cmdlet running for 5 seconds each. The number of samples can be modified using the -Samples parameter, and the number of seconds can be modified by using the -Seconds parameter. Alternate commands, utilities, and scripts can be specified with the -Command parameter.

  • Measure-CommandCompletionTime by tejanke 19 Apr 2011 12:07 AM UTC
    by 2 users

    Beginner Event 10

    This script contains a function to help measure the time it takes to complete commands.

  • Measure-Sleep.ps1 by Kyle Evans 18 Apr 2011 08:03 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Beginner Event 10 entry

  • Get-Sleeptime by Mark Stam 18 Apr 2011 07:37 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    This script consists of a function, which takes multiple measurements of a PowerShell command (in this case Start-Sleep) and provides the average time in milliseconds.

  • Sleep-Check by BradC 18 Apr 2011 06:33 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    Test the accuracy of the Start-Sleep command

  • AverageTime by Nathan Mayberry 18 Apr 2011 06:23 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    The script takes a command, a number of reruns desired and comes out with an average time it takes to complete.

  • Beginner10_2011.ps1 by Jeremy Cox 18 Apr 2011 05:38 PM UTC
    by 2 users

    Beginner Event 10
    3 Comments

  • Beginer10.ps1 by jrussell97 18 Apr 2011 03:44 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Displays the average run time in milliseconds of the Start-Sleep command. By default it measures 5 iterations of 5 sceonds duration. The number of iterations and the duration can be modified by use of command line parameters.

  • Test-Sleep.ps1 by Jason Walker 18 Apr 2011 01:55 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Tests the time it takes the Start-Sleep cmdlet to sleep for 5 seconds. Five measurements are taken and then averaged.

  • Get-AverageRunTime by bmorrison 18 Apr 2011 03:15 AM UTC
    by 3 users

    Beginner Event 10
    2 Comments

    Gets the Average run time of 'Start-Sleep 5" ran 5 times Allows a user to specify running command more/less than the default 5 times Allows a user to specify a command other than 'Start-Sleep 5' to run

  • elapsed time by oki 18 Apr 2011 01:42 AM UTC
    by 2 users

    Beginner Event 10

    sleep 5 times and show the actual elapse time calculate average after 5 runs

  • Get-AverageRuntime by Work Smart 17 Apr 2011 09:30 PM UTC
    by 2 users

    Beginner Event 10

    This script includes a function to calculate the average runtime of a scriptblock over multiple itterations. By default it runs the Start-Sleep cmdlet for 5 seconds over five itterations. It then returns the average runtime in milliseconds. The user can enter an alternate number of itterations or even an alternate scriptblock.