Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

54
Views
Execution time to be printed in html page

I've created a loan calculator using Javascript. But I've been thinking of adding the time taken for the code to execute the results. I wanted the execution time to be printed in my html page but I have no idea how to go forth. Please help!!! This is the code of loan calculator: https://github.com/gerhynes/loan-calculator

I've tried it by console logging the execution time but it didn't go as expected but I wanted it to be printed in my html.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

let LogStarts = performance.now();

loanCalculator();   // <---- The function you're measuring time

let LogEnds = performance.now();
console.log("Loan Calculator took " + (LogEnds - LogStarts) + " milliseconds.");
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!