Technology Programming

How to Measure Time in Python

    • 1). Open your Python editor.

    • 2). Type:

      import time;

      tickTock = time.time()

      print "Number of seconds since 12:00am, May 28, 2011:", tickTock

    • 3). Press "Enter." Python returns:

      "Number of seconds since 12:00am, May 28, 2011: 1307096391.56"

      In this example, you import the time module and Python calculates the amount of seconds in floating point format that has passed between 12:00am on May 28, 2011 to the current time on June 3, 2011.

Related posts "Technology : Programming"

How LiteData Creates Better Sites For Their Clients

Programming

Contrastive analysis of methodologies of test design for functional testing

Programming

A Proper Diet That Is Filled With Healthy Fats Can Help You Lose Weight

Programming

How to Create an Array of Objects in PHP

Programming

How to read character information from the World of Warcraft servers.

Programming

7 Ways To Master Ayurvedic Medicine For Constipation Without Breaking A Sweat

Programming

Web Design Company Kolkata for Seamless Ecommerce Site

Programming

What Happened to "Borland Delphi"? What is CodeGear? What is Embarcadero?

Programming

How to Send Pages to iFrame

Programming

Leave a Comment