Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Server {
- private static final String url = "jdbc:postgresql://localhost/test";
- private static final String login = "postgres";
- private static final String password = "12345";
- public static void main(String[] args) throws SQLException {
- System.out.println("Server is listening");
- While (true){
- long start = System.currentTimeMillis();
- Connection connection = DriverManager.getConnection(url, login, password);
- long end = System.currentTimeMillis();
- System.out.println(end-start);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement