Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Time-a-function/PureBasic/time-a-function-2.basic
Normal file
14
Task/Time-a-function/PureBasic/time-a-function-2.basic
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
If OpenConsole()
|
||||
Define Timed.f, cnt
|
||||
PrintN("Starting timing of a calculation,")
|
||||
PrintN("for this we test how many of 0-1000000 are palindromic.")
|
||||
; Dependent on Droopy-library
|
||||
If MeasureHiResIntervalStart()
|
||||
; Same Foo() as above...
|
||||
cnt=Foo(1000000)
|
||||
Timed=MeasureHiResIntervalStop()
|
||||
EndIf
|
||||
PrintN("The function need "+StrF(Timed*1000,3)+" msec,")
|
||||
PrintN("and "+Str(cnt)+" are palindromic.")
|
||||
Print("Press ENTER to exit."): Input()
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue