This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:comporg:projects:pnc1 [2018/02/01 18:54] – [Project: IMPLEMENTATIONS AND OPTIMIZATIONS - PRIME NUMBER COMPUTATION (pnc1)] bschulte | notes:comporg:projects:pnc1 [2018/02/06 13:41] (current) – [Project: IMPLEMENTATIONS AND OPTIMIZATIONS - PRIME NUMBER COMPUTATION (pnc1)] bstrong2 | ||
---|---|---|---|
Line 259: | Line 259: | ||
< | < | ||
- | startM | + | var start = new Date().getTime(); |
- | startS = new Date().getSeconds(); | + | |
-Pnc1 code- | -Pnc1 code- | ||
- | endM = new Date().getMilliseconds(); | + | var end = new Date().getTime(); |
- | endS = new Date().getSeconds(); | + | |
- | totalTime = endM - startM; | + | var time = (end-start)/1000; |
- | seconds = endS - startS; | + | |
- | totalTime /= 10000; | + | console.log(time); |
- | totalTime += seconds; | + | |
- | console.log(totalTime); | + | |
</ | </ | ||