Skip to content

Instantly share code, notes, and snippets.

@Raj39120
Created April 30, 2020 13:36
Show Gist options
  • Save Raj39120/5ab004b3d3563e451a2021be6ed67f1a to your computer and use it in GitHub Desktop.
Save Raj39120/5ab004b3d3563e451a2021be6ed67f1a to your computer and use it in GitHub Desktop.
import time
x = time.time()
y = time.time()
count_of_seconds_passed = 0
print("Below you will see a count of how many seconds have passed since the Epoch which was January 1st, 1970.")
time.sleep(3)
print("After that you will see how many seconds have passed since the program started displaying the time since Epoch.")
time.sleep(3)
print(str(count_of_seconds_passed) + " seconds passed since start time")
while x < y:
print("")
print(str(time.time()) + " seconds passed since Epoch.")
time.sleep(1)
count_of_seconds_passed = count_of_seconds_passed + 1
print("")
count_of_seconds_passed = count_of_seconds_passed+time.clock()
print(str(count_of_seconds_passed) + " seconds passed since start time.")
if 60 <= count_of_seconds_passed <= 61:
print("")
print("It's been about a minute, why are you still here.")
if 300 <= count_of_seconds_passed <= 301:
print("")
print("It's been about five minutes, you must be really dedicated.")
if 600 <= count_of_seconds_passed <= 601:
print("")
print("It's been about 10 minutes, you sure are crazy.")
if 1800 <= count_of_seconds_passed <= 1801:
print("")
print("It's been about 30 minutes, are you going to leave or not.")
if 3600 <= count_of_seconds_passed <= 3601:
print("")
print("It's been about an hour, you shouldn't be here right now.")
if 86400 <= count_of_seconds_passed <= 86401:
print("")
print("It's been an entire day, you must be a psycho, get help, and a life.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment