calculate the time ..

calculate the time ..

[CODE] Elapsed Time Example

    <script type="text/javascript">


        var startTime   =   null;
        var endTime     =   null;

        function sayHi() {
            alert("Please start the Exam...");
        }


        function captureStartTime() {
            startTime   =   new Date();
            alert("Time Started");
        }


        function captureEndTime() {
            endTime =   new Date();
            alert("Time Stopped");
        }


        function calculateTimeElapsed() {
            alert("Time elapsed: " + ((endTime - startTime) / 1000) + " seconds");
        }


    </script>
</head>


<body onload="sayHi();">
    <div>
      <form>
            <input type="button" value="Start Time" onclick="captureStartTime();" />
            <input type="button" value="Calculate Difference" onclick="calculateTimeElapsed();" />
        <input type="button" value="End Time" onclick="captureEndTime();calculateTimeElapsed();" />
        </form>
    </div>
</body>

[/CODE] this is my code ..i want the when u start the exam start time will be shown in middle of start time and end time...and i have to give the exact time like 2 hour and 3 hours whatever...when 10 minutes remaining one popup menu come and says there is 10 minutes left

so pls help me

Thank You.

View Answers









Related Tutorials/Questions & Answers:
calculate the time ..
calculate the time ..  [CODE] Elapsed Time Example...() { startTime = new Date(); alert("Time Started...(); alert("Time Stopped"); } function calculateTimeElapsed
calculate difference between two time in jsp
calculate difference between two time in jsp  How to calculate difference between two dates
Advertisements
calculate total hours by start time and end time in javascript - Ajax
calculate total hours by start time and end time in javascript  hi, i am doing Web surfing project. i used start and end timepicker field.it works... my doubts. how to calculate total hours by using start and end time field
Calculate process time in Java
Calculate process time in Java       This section provides the facility to calculate the process time of the completion of the operation through the Java program
Java example to calculate the execution time
Java example to calculate the execution time       get execution time This example program will describe you the way that how one can calculate or get the execution time
Having a hard time writing program to calculate test scores..........
Having a hard time writing program to calculate test scores..........  i need a program that does this:Standardized Test Scores A local high... into the array. Then calculate and output the following statistics: average score
How to calculate attending hours?
How to calculate attending hours?  I need to calculate attending hours of a employee in a day in my project to make their monthly salary . By using work starting time and ending time. How should I do it using Date class? Or any
calculate average
calculate average  Question 2 cont.d Test case c: home works/labs 10 9 9 9 10 10 9 9 10 10 9 9 10 test scores: 65 89 note, the program should work with different numbers of home works/labs
calculate average
calculate average   Design and write a java program to determine all three digit numbers such that the sum of the cubes of the digits is equal... and write a program and calculate your final average in this course. The details
time
time  how to find the current system time between the user login and logout using java
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do? For this i already received the answer. But its converting the time in 24hr format to 12hr format
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do? For this i already received the answer. But its converting the time in 24hr format to 12hr format
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do? For this i already received the answer. But its converting the time in 24hr format to 12hr format
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do? For this i already received the answer. But its converting the time in 24hr format to 12hr format
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do? For this i already received the answer. But its converting the time in 24hr format to 12hr format
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do? For this i already received the answer. But its converting the time in 24hr format to 12hr format
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do? For this i already received the answer. But its converting the time in 24hr format to 12hr format
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do? For this i already received the answer. But its converting the time in 24hr format to 12hr format
time
time  sir, i want to show system time on a textfield in awt(java). woulk you send me an example of time which can show time in standard format like H:M:S pls help me sir   Display time in JTextField import
time
time format hh:mm:ss  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do?   Here is a jsp example that fetch the time from the database and display
time
time display only as hh:mm.  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do?   Here is a jsp example that fetch the time from the database
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do?   Here is a jsp example that fetch the time from the database and display in different
time
time  Hi. I have retrieved time from mysql database. its in th format hh:mm:ss. but i want to display only as hh:mm. wat to do?   Here is a jsp example that fetch the time from the database and display in different
time
retrieved time from mysql database  Hi. I have retrieved time from.... wat to do?   Here is a jsp example that fetch the time from... is a jsp example that fetch the time from the database and display in different
calculate size of array
calculate size of array  Is it possible to calculate the size of array using pointers in Java
calculate reward points.
calculate reward points.  How to calculate reward points in a multiplex automation system
ModuleNotFoundError: No module named 'calculate'
ModuleNotFoundError: No module named 'calculate'  Hi, My Python... 'calculate' How to remove the ModuleNotFoundError: No module named 'calculate' error? Thanks   Hi, In your python environment you
Code to calculate hair density
Code to calculate hair density  Hello, Would you please give me a code to calculate the hair density on scalp from image in java
calculate sum of individual digit
calculate sum of individual digit   How calculate product of first and last digit of indiviual numbers Like a=43278 4*8=32
calculate sum of individual digit
calculate sum of individual digit  Hi How to calculate product of first snd last digit of indiviual digit Like Num=23456 S=2*6
How to calculate days in a year
How to calculate days in a year  Hi, How to calculate no of days in a year? I want a program that calculates no of days in a year by specifying year a parameter. Thanks   Hi, Please check the thread example
How to calculate the average in Hibernate?
How to calculate the average in Hibernate?  Hi, I have to calculate the average in Hibernate. How to calculate the average in Hibernate? Thanks   Hi, You can use the project in Hibernate. Here is the example code
Calculate factorial of a number.
Calculate factorial of a number.  How to calculate factorial of a given number?   import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Factorial { public static
Calculate sum and Average in java
Calculate sum and Average in java  How to calculate sum and average in java program?   Example:- import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class AvarageTest
calculate a list of products
calculate a list of products  Hi can you help me with this java program. This program should allow the user to order from a small catalogue of three items displayed on the screen, then calculate the user's final bill, including
calculate working hour
calculate working hour  why echo not come out? <html><body> <form action="<?php $_SERVER['PHP_SELF'];?>" method="post"> Working hour : <input name="workout" type="text"/><input name="submit1
ModuleNotFoundError: No module named 'date_calculate'
ModuleNotFoundError: No module named 'date_calculate'  Hi, My... named 'date_calculate' How to remove the ModuleNotFoundError: No module named 'date_calculate' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'latimes-calculate'
ModuleNotFoundError: No module named 'latimes-calculate'  Hi, My... named 'latimes-calculate' How to remove the ModuleNotFoundError: No module named 'latimes-calculate' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'latimes-calculate'
ModuleNotFoundError: No module named 'latimes-calculate'  Hi, My... named 'latimes-calculate' How to remove the ModuleNotFoundError: No module named 'latimes-calculate' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'latimes-calculate'
ModuleNotFoundError: No module named 'latimes-calculate'  Hi, My... named 'latimes-calculate' How to remove the ModuleNotFoundError: No module named 'latimes-calculate' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'ybc-calculate'
ModuleNotFoundError: No module named 'ybc-calculate'  Hi, My... 'ybc-calculate' How to remove the ModuleNotFoundError: No module named 'ybc-calculate' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'calculate-distributions'
ModuleNotFoundError: No module named 'calculate-distributions'  Hi...: No module named 'calculate-distributions' How to remove the ModuleNotFoundError: No module named 'calculate-distributions' error? Thanks   
ModuleNotFoundError: No module named 'calculate-expression'
ModuleNotFoundError: No module named 'calculate-expression'  Hi...: No module named 'calculate-expression' How to remove the ModuleNotFoundError: No module named 'calculate-expression' error? Thanks   Hi
ModuleNotFoundError: No module named 'calculate_lu'
ModuleNotFoundError: No module named 'calculate_lu'  Hi, My Python... 'calculate_lu' How to remove the ModuleNotFoundError: No module named 'calculate_lu' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'calculate-retention'
ModuleNotFoundError: No module named 'calculate-retention'  Hi, My... named 'calculate-retention' How to remove the ModuleNotFoundError: No module named 'calculate-retention' error? Thanks   Hi
ModuleNotFoundError: No module named 'date_calculate'
ModuleNotFoundError: No module named 'date_calculate'  Hi, My... named 'date_calculate' How to remove the ModuleNotFoundError: No module named 'date_calculate' error? Thanks   Hi, In your python
how to calculate the price on the option box
how to calculate the price on the option box  How i calculate the value when i using a option box with 2 option..first option i used for product name... to calculate this value
Calculate an average Age of my Class?
Calculate an average Age of my Class?  average age of my class
How to calculate average of array in Java?
How to calculate average of array in Java?  Hi, I have an integer array and I want to calculate the average of the values in it. How to calculate... the elements of array and then calculate sum. Then divide it with the length
Calculate Entropy using C++
Calculate Entropy using C++  # include <iostream> # include <cmath> using namespace std; int main() { float S0,S1,S2,S3; float Hs,Hs3; float

Ads