1
This commit is contained in:
0
levieProekti/KOTIKOT programs/CATUID generator.py
Normal file
0
levieProekti/KOTIKOT programs/CATUID generator.py
Normal file
22
levieProekti/KOTIKOT programs/Catbench.py
Normal file
22
levieProekti/KOTIKOT programs/Catbench.py
Normal file
@@ -0,0 +1,22 @@
|
||||
input("To start benchmark, press enter...")
|
||||
print("Testing your computer...")
|
||||
|
||||
import time
|
||||
|
||||
fromStartTest = time.time_ns()
|
||||
|
||||
n = 100000
|
||||
def factorial(kolvo):
|
||||
fakt = 1
|
||||
for i in range(1, kolvo + 1):
|
||||
fakt = fakt * i
|
||||
return fakt
|
||||
schislo = factorial(n)
|
||||
|
||||
|
||||
timeForBench1 = time.time_ns() - fromStartTest
|
||||
|
||||
|
||||
print("Time elapsed for bench 1 is " + str(timeForBench1/1000000000) + "s")
|
||||
print("Now it is time for benchmark 2, results of all bench and mark of computer you will see later")
|
||||
input("To exit CatBench press enter...")
|
||||
4
levieProekti/KOTIKOT programs/printmeow.py
Normal file
4
levieProekti/KOTIKOT programs/printmeow.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import time
|
||||
time.sleep(1)
|
||||
print("meow")
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user