Skip to content

Instantly share code, notes, and snippets.

@ktoso
Created October 17, 2012 10:35
Show Gist options
  • Save ktoso/3904882 to your computer and use it in GitHub Desktop.
Save ktoso/3904882 to your computer and use it in GitHub Desktop.
@Path("/uptime")
@Produces(Array("application/json"))
class UtilService {
@GET
def getUptime(): Long = {
println("getUptime")
(new Date().getTime - UtilService.startDate.getTime)/1000
}
}
object UtilService {
println("Yello!")
val startDate = new Date()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment