blob: 79f2bcedde470d0b14203d458788a68e0f6e65be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2007-2013, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id: Debug.scala 17412 2009-03-31 10:08:25Z michelou $
package scala.remoting
/**
* @author Stephane Micheloud
* @version 1.0
*/
object Debug extends runtime.remoting.Debug {
private val f = new java.text.SimpleDateFormat("HH:mm:ss")
private val c = new java.util.GregorianCalendar
def getTime: String = f format c.getTime
def getLocation(obj: AnyRef): String = {
val s = obj.getClass().getClassLoader().toString()
s substring s.indexOf('[')
}
}
|