Package jenkins.model

Class Uptime


  • @Extension
    public class Uptime
    extends Object
    Keeps track of the uptime of Jenkins.
    Since:
    1.538
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • Uptime

        public Uptime()
    • Method Detail

      • getStartTime

        public long getStartTime()
        Timestamp in which Jenkins became fully up and running.
      • getUptime

        public long getUptime()
        Duration in milliseconds since Jenkins became available
        Returns:
        uptime in milliseconds