Getting the start time of a service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aramakri
    New Member
    • Dec 2007
    • 9

    Getting the start time of a service

    Hello,
    I have a service that is running which has an on_action_start ed().In this method how can i find out the time when this service has started.
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by aramakri
    Hello,
    I have a service that is running which has an on_action_start ed().In this method how can i find out the time when this service has started.

    Hi,
    Are you running this on Unix Box, then you can use ps to find this out

    Raghuram

    Comment

    • aramakri
      New Member
      • Dec 2007
      • 9

      #3
      No actually this is a service that is kicked off by windows

      Comment

      • gpraghuram
        Recognized Expert Top Contributor
        • Mar 2007
        • 1275

        #4
        Originally posted by aramakri
        No actually this is a service that is kicked off by windows

        Sorry then, I have seen the start time of the process in unix using PS.
        I dont know how to get this on windows.

        Raghuram

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          For Windows, you call clock(). It returns the wall clock time since the process started.

          Comment

          Working...