What is the “time” mean in the command line arguement “time node app.js”? [duplicate]












-1
















This question already has an answer here:




  • Get program execution time in the shell

    10 answers




App.js contains this code:



function add(num1,num2){
let sum = num1+ num2;
}
let sum = add(2,2);


When I run "time node app.js" In the command line I get the response:



real 0m0.312s



user 0m0.000s



sys 0m0.015s



What does this mean? What is the time flag measuring? How is the runtime calculated? Can you point me to documentation on this flag?










share|improve this question















marked as duplicate by mkrieger1, John Kugelman bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 15 '18 at 13:25


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 1





    gnu.org/software/bash/manual/bashref.html#Pipelines

    – melpomene
    Nov 15 '18 at 13:22
















-1
















This question already has an answer here:




  • Get program execution time in the shell

    10 answers




App.js contains this code:



function add(num1,num2){
let sum = num1+ num2;
}
let sum = add(2,2);


When I run "time node app.js" In the command line I get the response:



real 0m0.312s



user 0m0.000s



sys 0m0.015s



What does this mean? What is the time flag measuring? How is the runtime calculated? Can you point me to documentation on this flag?










share|improve this question















marked as duplicate by mkrieger1, John Kugelman bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 15 '18 at 13:25


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 1





    gnu.org/software/bash/manual/bashref.html#Pipelines

    – melpomene
    Nov 15 '18 at 13:22














-1












-1








-1









This question already has an answer here:




  • Get program execution time in the shell

    10 answers




App.js contains this code:



function add(num1,num2){
let sum = num1+ num2;
}
let sum = add(2,2);


When I run "time node app.js" In the command line I get the response:



real 0m0.312s



user 0m0.000s



sys 0m0.015s



What does this mean? What is the time flag measuring? How is the runtime calculated? Can you point me to documentation on this flag?










share|improve this question

















This question already has an answer here:




  • Get program execution time in the shell

    10 answers




App.js contains this code:



function add(num1,num2){
let sum = num1+ num2;
}
let sum = add(2,2);


When I run "time node app.js" In the command line I get the response:



real 0m0.312s



user 0m0.000s



sys 0m0.015s



What does this mean? What is the time flag measuring? How is the runtime calculated? Can you point me to documentation on this flag?





This question already has an answer here:




  • Get program execution time in the shell

    10 answers








bash






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 13:22









melpomene

61.6k54994




61.6k54994










asked Nov 15 '18 at 13:18









Andrew RiveraAndrew Rivera

112




112




marked as duplicate by mkrieger1, John Kugelman bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 15 '18 at 13:25


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by mkrieger1, John Kugelman bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 15 '18 at 13:25


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1





    gnu.org/software/bash/manual/bashref.html#Pipelines

    – melpomene
    Nov 15 '18 at 13:22














  • 1





    gnu.org/software/bash/manual/bashref.html#Pipelines

    – melpomene
    Nov 15 '18 at 13:22








1




1





gnu.org/software/bash/manual/bashref.html#Pipelines

– melpomene
Nov 15 '18 at 13:22





gnu.org/software/bash/manual/bashref.html#Pipelines

– melpomene
Nov 15 '18 at 13:22












1 Answer
1






active

oldest

votes


















0














time is a unix command used to determine the duration of execution of a particular command. When run with your node command you will see something like



1.88 real         0.24 user         0.06 sys


at the end of the execution. real is the total elapsed time, user is the time spent in user code and sys is time spent in lernel code. This answer explains it much better.






share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    time is a unix command used to determine the duration of execution of a particular command. When run with your node command you will see something like



    1.88 real         0.24 user         0.06 sys


    at the end of the execution. real is the total elapsed time, user is the time spent in user code and sys is time spent in lernel code. This answer explains it much better.






    share|improve this answer




























      0














      time is a unix command used to determine the duration of execution of a particular command. When run with your node command you will see something like



      1.88 real         0.24 user         0.06 sys


      at the end of the execution. real is the total elapsed time, user is the time spent in user code and sys is time spent in lernel code. This answer explains it much better.






      share|improve this answer


























        0












        0








        0







        time is a unix command used to determine the duration of execution of a particular command. When run with your node command you will see something like



        1.88 real         0.24 user         0.06 sys


        at the end of the execution. real is the total elapsed time, user is the time spent in user code and sys is time spent in lernel code. This answer explains it much better.






        share|improve this answer













        time is a unix command used to determine the duration of execution of a particular command. When run with your node command you will see something like



        1.88 real         0.24 user         0.06 sys


        at the end of the execution. real is the total elapsed time, user is the time spent in user code and sys is time spent in lernel code. This answer explains it much better.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 '18 at 13:25









        runnerpaulrunnerpaul

        700526




        700526

















            Popular posts from this blog

            Bressuire

            Vorschmack

            Quarantine