playframework - how to get the startup time of the play framework? -


i need retrieve startup time of play framework. added code startup time inside onstart method in global. however, collects startup time when receives first request.

what need 1.get time when play framework(web server) starts. 2.is there api me start time of physical server?

your app starts after first request, because starting in dev mode instead production, don't you?

in case play waits first request, always. if you'll start app play start invoke beforestart , onstart methods possible without waiting request.

if want measure time required downloading dependencies , compilation i'd use ie. shell script first create file start.txt , run app play start. next in onstart can compare time between current time , time of file's creation.

getting uptime of physical server dependent on os, need search additionally current machine. i.e. linuxes like in answer


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -