æ¦è¦ åèè ã®è¨±è«¾ãå¾ã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: Elapsed time with Ruby, the right way - DNSimple Blog åæå ¬éæ¥: 2018/03/28 èè : Luca Guidi Rubyã§çµéæéãç®åºãããã¨ãã¯ã©ããªãµãã«ãããã¨ãå¤ãã§ããï¼ starting = Time.now # ä½ãæéã®ããããã¨ããã ending = Time.now elapsed = ending - starting elapsed # => 10.822178 â ããã¼ï¸ãããã¯éãã¾ããçç±ã¯æ¬¡ã®ã¨ããã§ãã ãæéã¯åã«é²ãã¨ã¯éããªãã Rubyã®Time.nowã¯ãä½ã¬ãã«ã®OSï¼Operating Systemï¼è¨å®ã«å¿ãã¦Linuxã®time.hã«ããgettimeofdayé¢æ°ãclock_gettimeé¢æ°ã使ã£ã¦ãã¾ãã
{{#tags}}- {{label}}
{{/tags}}