Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kurs_java_alx_20240321
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
kurs_java_alx_20240321
Commits
e7789524
Commit
e7789524
authored
Mar 22, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dopisek w IntegerPomiarCzasu
parent
23b4f6ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
IntPomiarCzasu.java
src/p02_liczby/IntPomiarCzasu.java
+1
-0
IntegerPomiarCzasu.java
src/p02_liczby/IntegerPomiarCzasu.java
+1
-0
No files found.
src/p02_liczby/IntPomiarCzasu.java
View file @
e7789524
...
...
@@ -7,6 +7,7 @@ public class IntPomiarCzasu {
// obliczamy sumę liczb z dużego zakresu, od 1 do miliard
// liczby to będzie int / Integer , a sumę liczymy jako long / Long
System
.
out
.
println
(
"Startujemy..."
);
long
poczatek
=
System
.
currentTimeMillis
();
// nanoTime - w nanosekundach
long
suma
=
0
;
for
(
int
i
=
1
;
i
<=
LIMIT
;
i
++)
{
...
...
src/p02_liczby/IntegerPomiarCzasu.java
View file @
e7789524
...
...
@@ -7,6 +7,7 @@ public class IntegerPomiarCzasu {
// obliczamy sumę liczb z dużego zakresu, od 1 do miliard
// liczby to będzie int / Integer , a sumę liczymy jako long / Long
System
.
out
.
println
(
"Startujemy..."
);
long
poczatek
=
System
.
currentTimeMillis
();
// nanoTime - w nanosekundach
Long
suma
=
0L
;
for
(
Integer
i
=
1
;
i
<=
LIMIT
;
i
++)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment