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'

  • Beginner10_2011 by Srikanth 15 Apr 2011 10:10 AM UTC
    by 2 users

    Beginner Event 10
    1 Comments

  • Measure-SleepCommand by Ivan F. 15 Apr 2011 10:29 AM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Measure sum, average, minimum or maximum time taken to execute Start-Sleep command.

  • 10_sg_beginner by AdamZ 15 Apr 2011 12:32 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    Script to Measure Time to Complete a Command

  • MeasureTime.ps1 by Tron04 15 Apr 2011 01:32 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    Use PowerShell to Measure Time to Complete a Command

  • SG2011script10.ps1 by Krzysztof Walkiewicz 15 Apr 2011 01:50 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Displays average run time of a Start-Sleep cmdlet in milliseconds.

  • BeginnerDay10.ps1 by 52c286bdf7fa6488cd3cde9ca24538f7 15 Apr 2011 02:29 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Measure time to complete a command

  • measuertime by kloinerFeigling83 15 Apr 2011 02:33 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    #Run this: measuertime -seconds 5 -runs 5

  • B-10 by Ayo Wu 15 Apr 2011 03:11 PM UTC
    by 2 users

    Beginner Event 10

  • Test-SleepTiming by ICC_AndyC 15 Apr 2011 03:16 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Measures the actual time it takes to execute a sleep command. For a given number of times, measures the time it takes for the Start-Sleep command to execute. Prints a message containing the number of runs, sleep time, and the average sleep time.

  • Measure-SleepTiming by Ygramul 15 Apr 2011 03:18 PM UTC
    by 2 users

    Beginner Event 10

    The number of seconds to sleep, the number of runs to take, the output message and the unit in which to measure (seconds, milliseconds, minutes, ...) are all configurable. Includes help, examples and parameter validation.

  • Get-AverageRunTime by Jeff Patton 15 Apr 2011 03:30 PM UTC
    by 2 users

    Beginner Event 10
    3 Comments

    This function returns the average time in milliseconds for a command to run over several iterations. Simply pass in the number of iterations, and the script block you wish to test. For the purposes of the ScriptingGames I have commented out the ScriptBlock variable, but in actuality you *should* be able to pass this function a block of code to run and number of iterations and it will return the proper value for you. Uncomment out the comments in the following lines 61, 62, 72 Comment out the following lines 66, 67, 71

  • BeginnerEvent10_2011.ps1 by RedPhoenix32 15 Apr 2011 03:58 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Tests the length of Start-Sleep

  • Test-Duration by Jeffrey Smith 15 Apr 2011 05:07 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    A quick function to test the average duration of a given cmdlet. This was a quick fun function to write -- go splatting!

  • Test-TimerAccuracy by Arposh 15 Apr 2011 05:14 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    One-liner with parameters - (Measure($Seconds x $Count))/$Count - User has choice in how to measure the accuracy

  • DetermineCommandDuration.ps1 by ICC_RyanDennis 15 Apr 2011 05:50 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    This PowerShell script uses Measure-Command and Start-Sleep to measure the time it takes for a command to run. By providing the Amount and Seconds parameters, you can define how many times to run and for how many seconds.

  • Beginner, Event 10 by Serg 15 Apr 2011 06:04 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Sсrpit calculates exactly how much time it takes a delay of 5 seconds, by specifying a Start-Sleep For this it is 5 measurements and select average value

  • Beginner10_2011.ps1 by Brian Jester 15 Apr 2011 06:51 PM UTC
    by 2 users

    Beginner Event 10

    Use PowerShell to Measure Time to Complete a Command

  • Beg10.ps1 by joel delatorre 15 Apr 2011 07:31 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    When run without parameters the command will run to accomplish the requirements of Game 10. You can pass the parameters of CustomCommand and Attempts to run a user specified command any number of times and return the average run time per command.

  • Test-SleepTimer by Mike Hammond 15 Apr 2011 07:49 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Evaluates precision of the Start-Sleep cmdlet. Retrieves date-time stamp for start and end of cmdlet execution, then averages difference in total milliseconds over each of several tests. 5 tests of 5 seconds each are the default values, but these can be changed by parameter. Reusable Function Accepts pipeline input Comment-based help .Net Format string for output Graphical display during lengthy delays Clean code

  • Beginner10 by Jon McCormick 15 Apr 2011 08:16 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Measure Total Milliseconds it takes to run a command 5 times. Then Find the Average time in Milliseconds.

  • Get-AverageTime by e34205ecdbbbc7acaf2740f12582e9ba 15 Apr 2011 08:51 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Gets the average time to test the Start-Sleep cmdlet over a period of iterations

  • Test-TimeAccuracy by Jeremy Dunlop 15 Apr 2011 11:03 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    This script will test the accuracy of running the Start-Sleep cmdlet on your computer.

  • Event10 by hammer 16 Apr 2011 04:18 AM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Script to get the average Milliseconds it takes to run start-sleep for a given number of seconds. 2011 Scripting game completed!!!

  • test-StartSleep by Nathan Linley 16 Apr 2011 04:48 AM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Run a test of Start-Sleep for any given number of seconds over any given number of iterations. If nothing is provides, by default it does 5 iterations of 5 seconds. The script returns the average time in milliseconds.

  • Get-CmdletPerformance.ps1 by Lucas 16 Apr 2011 07:21 AM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    This script calculates how long it takes the start-sleep cmdlet to run on average. The number of tests and the number of seconds start-sleep will run can be passed as parameters to the script. The default values are 5 test with start-sleep running for 5 seconds. The average is displayed with 5-digit precision.