3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-03 13:55:47 +00:00

Z3 sources

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-10-02 11:35:25 -07:00
parent 3f9edad676
commit e9eab22e5c
1186 changed files with 381859 additions and 0 deletions

40
lib/timer.cpp Normal file
View file

@ -0,0 +1,40 @@
/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
timer.cpp
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2009-01-06.
Revision History:
--*/
#include"util.h"
#include"memory_manager.h"
#include"stopwatch.h"
#include"timer.h"
timer::timer(){
m_watch = alloc(stopwatch);
start();
}
timer::~timer() {
dealloc(m_watch);
}
void timer::start() {
m_watch->start();
}
double timer::get_seconds() {
return m_watch->get_current_seconds();
}